mirror of
https://github.com/CorentinTh/it-tools.git
synced 2025-05-05 22:07:10 -04:00
WIP(translate): translate converter category all tools
This commit is contained in:
parent
2ee3b01105
commit
2da11a7242
68 changed files with 716 additions and 174 deletions
|
@ -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);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue