@ezuikit/utils-i18n
v1.0.1
Published
i18n utils
Downloads
311
Readme
I18n
多语言
scripts
pnpm run dev
pnpm run build
pnpm run test
使用
pnpm install @ezuikit/utils-i18n
import zh from './zh_CN';
import en from './en_US';
const i18n = new I18n(
{
zh,
en
},
{
locale: 'zh',
defaultLocale: 'zh',
enableFallback: true
}
);
i18n.t("title")