From 10a5bdba224d8fec3d54da404be731ddeabc98fd Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 5 May 2026 16:17:45 +0800 Subject: [PATCH] bugfix --- bricks/i18n.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bricks/i18n.js b/bricks/i18n.js index f0c2f11..8d000c1 100644 --- a/bricks/i18n.js +++ b/bricks/i18n.js @@ -28,7 +28,7 @@ bricks.I18n = class { _(txt, obj){ var outt, mt; this.change_lang(this.lang); - var msgs = this.lang_msgs[this.lang].msgs; + var msgs = this.lang_msgs[this.lang].msgs || {}; mt = msgs[txt] || txt; if (obj instanceof Object){ outt = obj_fmtstr(obj, mt);