diff --git a/conf/config.json b/conf/config.json index 7d08490..4dab9f3 100644 --- a/conf/config.json +++ b/conf/config.json @@ -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" } diff --git a/wwwroot/i18n/language.ui b/wwwroot/i18n/language.ui index 25e5236..7c979cb 100644 --- a/wwwroot/i18n/language.ui +++ b/wwwroot/i18n/language.ui @@ -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)" } ] }