Skip to content

Commit 5b916f4

Browse files
feat: improve CLI demos (#1036)
1 parent 9d7f488 commit 5b916f4

144 files changed

Lines changed: 2500 additions & 2752 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.changeset/six-rats-check.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
---
2+
---

packages/cli/demo/android/en.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<resources>
3+
<string name="app_name">MyApp</string>
4+
<string name="welcome_message">Hello, world!</string>
5+
<string name="button_text">Get Started</string>
6+
7+
<string name="api_endpoint" translatable="false">https://api.example.com</string>
8+
<string name="debug_key" translatable="false">DEBUG_MODE_ENABLED</string>
9+
10+
<string-array name="color_names">
11+
<item>Red</item>
12+
<item>Green</item>
13+
<item>Blue</item>
14+
</string-array>
15+
16+
<string-array name="server_urls" translatable="false">
17+
<item>https://prod.example.com</item>
18+
<item>https://staging.example.com</item>
19+
<item>https://dev.example.com</item>
20+
</string-array>
21+
22+
<plurals name="notification_count">
23+
<item quantity="one">%d new message</item>
24+
<item quantity="other">%d new messages</item>
25+
</plurals>
26+
27+
<plurals name="cache_size" translatable="false">
28+
<item quantity="one">%d byte</item>
29+
<item quantity="other">%d bytes</item>
30+
</plurals>
31+
32+
<bool name="show_tutorial">true</bool>
33+
<bool name="enable_animations">false</bool>
34+
35+
<bool name="is_debug_build" translatable="false">false</bool>
36+
<bool name="enable_logging" translatable="false">true</bool>
37+
38+
<integer name="max_retry_attempts">3</integer>
39+
<integer name="default_timeout">30</integer>
40+
41+
<integer name="build_version" translatable="false">42</integer>
42+
<integer name="api_version" translatable="false">1</integer>
43+
44+
<string name="html_snippet">&lt;b&gt;Bold&lt;/b&gt;</string>
45+
46+
<string name="apostrophe_example">Don\'t forget!</string>
47+
48+
<string name="cdata_example"><![CDATA[Special <tag> ]]></string>
49+
50+
<string-array name="mixed_items">
51+
<item> Item with spaces </item>
52+
<item> </item>
53+
</string-array>
54+
55+
<string-array name="non_localised_array" translatable="false">
56+
<item>Ignored</item>
57+
</string-array>
58+
59+
<plurals name="non_localised_plural" translatable="false">
60+
<item quantity="one">Ignored</item>
61+
<item quantity="other">Ignored</item>
62+
</plurals>
63+
</resources>

packages/cli/demo/android/es.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<resources>
2+
<string name="app_name">MyApp</string>
3+
<string name="welcome_message">¡Hola, mundo!</string>
4+
<string name="button_text">Comenzar</string>
5+
<string name="html_snippet">&lt;b&gt;Negrita&lt;/b&gt;</string>
6+
<string name="apostrophe_example">¡No olvides!</string>
7+
<string name="cdata_example">Especial &lt;tag&gt; </string>
8+
<string-array name="color_names">
9+
<item>Rojo</item>
10+
<item>Verde</item>
11+
<item>Azul</item>
12+
</string-array>
13+
<string-array name="mixed_items">
14+
<item>Elemento con espacios</item>
15+
<item> </item>
16+
</string-array>
17+
<plurals name="notification_count">
18+
<item quantity="one">%d mensaje nuevo</item>
19+
<item quantity="other">%d mensajes nuevos</item>
20+
</plurals>
21+
<bool name="show_tutorial">true</bool>
22+
<bool name="enable_animations">false</bool>
23+
<integer name="max_retry_attempts">3</integer>
24+
<integer name="default_timeout">30</integer>
25+
</resources>
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": 1.8,
3+
"locale": {
4+
"source": "en",
5+
"targets": [
6+
"es"
7+
]
8+
},
9+
"buckets": {
10+
"android": {
11+
"include": [
12+
"./[locale]/example.xml"
13+
]
14+
}
15+
},
16+
"$schema": "https://lingo.dev/schema/i18n.json"
17+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
version: 1
2+
checksums:
3+
ec06a6ebae97ffd5f7afc99d9a8f051b:
4+
app_name: 7dc70110429d46e3685f385bd2cc941c
5+
welcome_message: 0468579ef2fbc83c9d520c2f2f1c5059
6+
button_text: 1d5f030c4ec9c869e647ae060518b948
7+
html_snippet: f060191b1af70b3848106a4df91f43cd
8+
apostrophe_example: 997099339b144b06266f8da411de8d93
9+
cdata_example: ba876d1379f854628eaebf67ea330ccc
10+
color_names/0: bace0083b78cdb188523bc4abc7b55c6
11+
color_names/1: 482ff383a4258357ba404f283682471d
12+
color_names/2: a5cf034b2d370a976119335cd99f4217
13+
mixed_items/0: 9278f79dfb062c6c04f6395108907816
14+
mixed_items/1: 9823a57cbe6e6e84c1d025ce24a1eec4
15+
notification_count/one: fe0aceb70f334c52a87937c36898a1d0
16+
notification_count/other: 13acfd95b16962ebe1f67dcd343513e1

packages/cli/demo/android/ru.xml

Lines changed: 0 additions & 4 deletions
This file was deleted.

packages/cli/demo/csv/example.csv

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
KEY,en,es
2+
welcome_message,Welcome to our application,Bienvenido a nuestra aplicación
3+
button_save,Save,Guardar
4+
error_invalid_email,Please enter a valid email address,"Por favor, introduce una dirección de correo electrónico válida"
5+
product_name,Premium Widget,Widget Premium
6+
empty_row_key,,
7+
whitespace_only, ,
8+
new_feature,This is a new feature,Esta es una nueva función

packages/cli/demo/csv/file.csv

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)