diff --git a/packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts b/packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts index b73516481..9212633dd 100644 --- a/packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts +++ b/packages/plugins/@tachybase/plugin-mobile-client/src/client/locale/index.ts @@ -3,9 +3,6 @@ import { useTranslation as useT } from 'react-i18next'; export const NAMESPACE = 'mobile-client'; -// i18n.addResources('zh-CN', NAMESPACE, zhCN); -// i18n.addResources('en-US', NAMESPACE, enUS); - export function lang(key: string) { return i18n.t(key, { ns: NAMESPACE }); } @@ -17,7 +14,7 @@ export function generateNTemplate(key: string) { export const tval = (key: string) => nTval(key, { ns: NAMESPACE }); export function useTranslation() { - return useT([NAMESPACE, 'client'], { + return useT([NAMESPACE, '@tachybase/plugin-mobile-client', 'client'], { nsMode: 'fallback', }); }