refactor: add TranslatorManager

This commit is contained in:
Gabe
2025-10-21 02:07:33 +08:00
parent ed279cf8a1
commit 53e32d3031
17 changed files with 566 additions and 405 deletions

View File

@@ -5,6 +5,7 @@ export const APP_LCNAME = APP_NAME.toLowerCase();
export const APP_CONSTS = {
fabID: `${APP_LCNAME}-fab`,
boxID: `${APP_LCNAME}-box`,
popupID: `${APP_LCNAME}-popup`,
};
export const APP_VERSION = process.env.REACT_APP_VERSION.split(".");

View File

@@ -1722,4 +1722,4 @@ export const I18N = {
},
};
export const i18n = (lang) => (key) => I18N[key]?.[lang] || "";
export const newI18n = (lang) => (key) => I18N[key]?.[lang] || "";