From 30041c08dcfd11c7cb76020eba7a1c7df4512e5c Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 28 Dec 2025 16:38:58 +0800 Subject: [PATCH] bugfix --- bricks/bricks.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/bricks/bricks.js b/bricks/bricks.js index 2bba77c..28e553b 100644 --- a/bricks/bricks.js +++ b/bricks/bricks.js @@ -574,7 +574,12 @@ bricks.App = class extends bricks.Layout { this.lang_x = this.observable('lang', this.lang); this.zindex = 10000; this.textList = []; - this.i18n = new bricks.I18n(objget(opts, 'i18n', {})); + var i18n_opts = opts.i18n || { + url:'/i18n', + i18n_path: 'i18n', + lang:this.lang + }; + this.i18n = new bricks.I18n(i18n_opts); this.session_id = null; this.tooltip = new bricks.Tooltip({otext:'',i18n:true, wrap:true}); this.tooltip.hide();