fix: i18n_getmsgs 路由到内置 i18n registerfunction + language 用 text 显示
This commit is contained in:
parent
d0fe4c98cf
commit
ed7aa81023
@ -46,7 +46,13 @@
|
||||
"session_max_time": 3600,
|
||||
"session_issue_time": 1800,
|
||||
"client_max_size": 10485760,
|
||||
"indexes": ["index.ui", "index.html"]
|
||||
"indexes": ["index.ui", "index.html"],
|
||||
"startswiths": [
|
||||
{
|
||||
"leading": "/i18n_getmsgs",
|
||||
"registerfunction": "i18n"
|
||||
}
|
||||
]
|
||||
},
|
||||
"SAGE_RBAC_DB": "pipeline"
|
||||
}
|
||||
|
||||
@ -3,7 +3,7 @@
|
||||
"widgettype": "Text",
|
||||
"options": {
|
||||
"tip": "切换语言",
|
||||
"otext": "🌐",
|
||||
"text": "🌐",
|
||||
"cwidth": 4,
|
||||
"css": "clickable",
|
||||
"cfontsize": 1.2
|
||||
@ -29,7 +29,7 @@
|
||||
"event": "lang",
|
||||
"actiontype": "script",
|
||||
"target": "self",
|
||||
"script": "this.set_otext(bricks.app.lang)"
|
||||
"script": "this.set_text(bricks.app.lang)"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user