wgui: basic i18n support, refactoring: use LayoutState, translation framework (LLM-based generator)
This commit is contained in:
@@ -5,7 +5,8 @@
|
||||
width="1000" height="500" min_width="1000" min_height="500"
|
||||
gap="4" flex_direction="column"
|
||||
overflow_y="scroll">
|
||||
<label text="aaa" color="#FFFFFF" />
|
||||
<label text="Raw text" color="#FFFFFF" />
|
||||
<label translation="TESTBED.HELLO_WORLD" color="#FFFFFF" />
|
||||
|
||||
<button text="Red button" width="128" height="32" color="#FF0000" />
|
||||
<button text="Aqua button" width="128" height="32" color="#00FFFF" />
|
||||
|
||||
9
uidev/assets/lang/de.json
Normal file
9
uidev/assets/lang/de.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"BAR": {
|
||||
"OPACITY": "Undurchsichtigkeit",
|
||||
"ADDITIVE": "Additiv"
|
||||
},
|
||||
"TESTBED": {
|
||||
"HELLO_WORLD": "Hallo, Welt! Dies ist ein übersetzter I18n-Text."
|
||||
}
|
||||
}
|
||||
9
uidev/assets/lang/en.json
Normal file
9
uidev/assets/lang/en.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"BAR": {
|
||||
"OPACITY": "Opacity",
|
||||
"ADDITIVE": "Additive"
|
||||
},
|
||||
"TESTBED": {
|
||||
"HELLO_WORLD": "Hello, world! This is a translated I18n text."
|
||||
}
|
||||
}
|
||||
9
uidev/assets/lang/es.json
Normal file
9
uidev/assets/lang/es.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"BAR": {
|
||||
"OPACITY": "Opacidad",
|
||||
"ADDITIVE": "Aditivo"
|
||||
},
|
||||
"TESTBED": {
|
||||
"HELLO_WORLD": "¡Hola, mundo! Este es un texto traducido de I18n."
|
||||
}
|
||||
}
|
||||
9
uidev/assets/lang/ja.json
Normal file
9
uidev/assets/lang/ja.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"BAR": {
|
||||
"OPACITY": "不透明度",
|
||||
"ADDITIVE": "加法"
|
||||
},
|
||||
"TESTBED": {
|
||||
"HELLO_WORLD": "こんにちは、世界!これは翻訳されたI18nテキストです。"
|
||||
}
|
||||
}
|
||||
9
uidev/assets/lang/pl.json
Normal file
9
uidev/assets/lang/pl.json
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"BAR": {
|
||||
"OPACITY": "Przezroczystość",
|
||||
"ADDITIVE": "Addytywny"
|
||||
},
|
||||
"TESTBED": {
|
||||
"HELLO_WORLD": "Witaj, świecie! To przetłumaczony tekst I18n."
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user