Compare commits

...

2 Commits

Author SHA1 Message Date
59c25e5832 bugfix 2025-12-29 17:46:44 +08:00
f4448699a4 bugfix 2025-12-29 17:35:13 +08:00
2 changed files with 12 additions and 4 deletions

View File

@ -1,4 +1,5 @@
{ {
"id":"language",
"widgettype":"Text", "widgettype":"Text",
"options":{ "options":{
"tip":"change UI language", "tip":"change UI language",
@ -22,6 +23,13 @@
"options":{ "options":{
"url":"{{entire_url('menu.ui')}}" "url":"{{entire_url('menu.ui')}}"
} }
},
{
"wid":"app",
"event":"lang",
"actiontype":"script",
"target":"self",
"script":"this.set_otext(bricks.app.lang)"
} }
] ]
} }

View File

@ -7,22 +7,22 @@
{ {
"name":"en", "name":"en",
"label":"en", "label":"en",
"script":"this.change_lang('en')" "script":"this.change_language('en')"
}, },
{ {
"name":"zh", "name":"zh",
"label":"zh", "label":"zh",
"script":"this.change_lang('zh')" "script":"this.change_language('zh')"
}, },
{ {
"name":"jp", "name":"jp",
"label":"jp", "label":"jp",
"script":"this.change_lang('jp')" "script":"this.change_language('jp')"
}, },
{ {
"name":"ko", "name":"ko",
"label":"ko", "label":"ko",
"script":"this.change_lang('ko')" "script":"this.change_language('ko')"
} }
] ]
} }