This commit is contained in:
yumoqing 2025-12-28 17:25:01 +08:00
parent 980176d973
commit 0ae12e86ff

View File

@ -28,9 +28,7 @@ bricks.I18n = class {
_(txt, obj){
var outt, mt;
var msgs = this.lang_msgs[this.lang].msgs;
if (msgs.hasOwnProperty(txt)){
mt = msgs[txt] || txt;
}
if (obj instanceof Object){
outt = obj_fmtstr(obj, mt);
} else {