This commit is contained in:
yumoqing 2026-05-05 16:17:45 +08:00
parent 4485248246
commit 10a5bdba22

View File

@ -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);