admin-vben5/packages/locales/src/index.ts
Li Kui 6a1e6ad99f
fix: the translation is incorrect when switching languages for the first time (#4146)
* fix: the translation is incorrect when switching languages for the first time

closes #4138

* chore: merge locale message even if default locale not exist
2024-08-14 05:29:31 +08:00

16 lines
417 B
TypeScript

import { i18n, loadLocaleMessages, loadLocalesMap, setupI18n } from './i18n';
const $t = i18n.global.t;
export { $t, i18n, loadLocaleMessages, loadLocalesMap, setupI18n };
export {
type ImportLocaleFn,
type LocaleSetupOptions,
type SupportedLanguagesType,
} from './typing';
export type { CompileError } from '@intlify/core-base';
export { useI18n } from 'vue-i18n';
export type { Locale } from 'vue-i18n';