bugfix
This commit is contained in:
parent
1e1408cb68
commit
79ec25273d
@ -17,7 +17,7 @@
|
||||
"widgettype":"Title4",
|
||||
"options":{
|
||||
"i18n":true,
|
||||
"otext":"元境大模型应用平台",
|
||||
"otext":"元境平台",
|
||||
"wrap":true,
|
||||
"halign":"left"
|
||||
}
|
||||
|
||||
18
wwwroot/i18n/langs.dspy
Normal file
18
wwwroot/i18n/langs.dspy
Normal file
@ -0,0 +1,18 @@
|
||||
return [
|
||||
{
|
||||
"value":"en",
|
||||
"text":"English"
|
||||
},
|
||||
{
|
||||
"value":"zh",
|
||||
"text":"简体中文"
|
||||
},
|
||||
{
|
||||
"value":"jp",
|
||||
"text":"日本语"
|
||||
},
|
||||
{
|
||||
"value":"ko",
|
||||
"text":"韩语"
|
||||
}
|
||||
]
|
||||
26
wwwroot/i18n/language.ui
Normal file
26
wwwroot/i18n/language.ui
Normal file
@ -0,0 +1,26 @@
|
||||
{
|
||||
"widgettype":"Text",
|
||||
"options":{
|
||||
"tip":"change UI language",
|
||||
"i18n":true,
|
||||
"otext":"{{params_kw.lang}}",
|
||||
"cwidth": 4,
|
||||
"css":"clickable"
|
||||
},
|
||||
"binds":[
|
||||
{
|
||||
"wid":"self",
|
||||
"event":"click",
|
||||
"actiontype":"urlwidget",
|
||||
"target":"Popup",
|
||||
"popup_options":{
|
||||
"eventpos":true,
|
||||
"cwidth": 11,
|
||||
"dismiss_events":["command"]
|
||||
},
|
||||
"options":{
|
||||
"url":"{{entire_url('menu.ui')}}"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
29
wwwroot/i18n/menu.ui
Normal file
29
wwwroot/i18n/menu.ui
Normal file
@ -0,0 +1,29 @@
|
||||
{
|
||||
"widgettype":"Menu",
|
||||
"options":{
|
||||
"cwidth":11,
|
||||
"target":"app",
|
||||
"items":[
|
||||
{
|
||||
"name":"en",
|
||||
"label":"en",
|
||||
"script":"this.change_lang('en')"
|
||||
},
|
||||
{
|
||||
"name":"zh",
|
||||
"label":"zh",
|
||||
"script":"this.change_lang('zh')"
|
||||
},
|
||||
{
|
||||
"name":"jp",
|
||||
"label":"jp",
|
||||
"script":"this.change_lang('jp')"
|
||||
},
|
||||
{
|
||||
"name":"ko",
|
||||
"label":"ko",
|
||||
"script":"this.change_lang('ko')"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
@ -13,6 +13,12 @@
|
||||
"url":"{{entire_url('/app_panel.ui')}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"widgettype":"urlwidget",
|
||||
"options":{
|
||||
"url":"{{entire_url('i18n/languange.ui')}}"
|
||||
}
|
||||
},
|
||||
{
|
||||
"widgettype":"Svg",
|
||||
"options":{
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user