Update i18n.ts
This commit is contained in:
@@ -1815,7 +1815,7 @@ export function t(
|
||||
let s: string = dicts[current][key] ?? dicts.en[key] ?? key;
|
||||
if (vars) {
|
||||
for (const [k, v] of Object.entries(vars))
|
||||
s = s.replaceAll(`{${k}}`, String(v));
|
||||
s = s.split(`{${k}}`).join(String(v));
|
||||
}
|
||||
return s;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user