2024-10-19 14:28:21 +08:00
|
|
|
import {
|
|
|
|
i18n,
|
|
|
|
loadLocaleMessages,
|
|
|
|
loadLocalesMap,
|
|
|
|
loadLocalesMapFromDir,
|
|
|
|
setupI18n,
|
|
|
|
} from './i18n';
|
2024-07-07 00:17:44 +08:00
|
|
|
|
|
|
|
const $t = i18n.global.t;
|
2025-02-25 19:47:45 +08:00
|
|
|
const $te = i18n.global.te;
|
2024-07-07 00:17:44 +08:00
|
|
|
|
2024-10-19 14:28:21 +08:00
|
|
|
export {
|
|
|
|
$t,
|
2025-02-25 19:47:45 +08:00
|
|
|
$te,
|
2024-10-19 14:28:21 +08:00
|
|
|
i18n,
|
|
|
|
loadLocaleMessages,
|
|
|
|
loadLocalesMap,
|
|
|
|
loadLocalesMapFromDir,
|
|
|
|
setupI18n,
|
|
|
|
};
|
2024-08-14 05:29:31 +08:00
|
|
|
export {
|
|
|
|
type ImportLocaleFn,
|
|
|
|
type LocaleSetupOptions,
|
|
|
|
type SupportedLanguagesType,
|
|
|
|
} from './typing';
|
2024-07-10 21:40:29 +08:00
|
|
|
export type { CompileError } from '@intlify/core-base';
|
2024-08-14 05:29:31 +08:00
|
|
|
|
2024-07-07 00:17:44 +08:00
|
|
|
export { useI18n } from 'vue-i18n';
|
2024-08-14 05:29:31 +08:00
|
|
|
|
2024-07-10 21:40:29 +08:00
|
|
|
export type { Locale } from 'vue-i18n';
|