WIP(translate): translate converter category all tools

This commit is contained in:
Amery2010 2023-12-26 23:57:28 +08:00
parent 2ee3b01105
commit 2da11a7242
68 changed files with 716 additions and 174 deletions

View file

@ -31,7 +31,7 @@ export const i18nPlugin: Plugin = {
},
};
export const translate = function (localeKey: string) {
export const translate = function (localeKey: string, named?: Record<string, unknown>) {
// @ts-expect-error global
return i18n.global.t(localeKey);
return i18n.global.t(localeKey, named);
};