fes.js/packages/fes-plugin-locale/types.d.ts
2024-02-19 16:14:28 +08:00

22 lines
564 B
TypeScript

export { useI18n } from 'vue-i18n';
export const locale: {
setLocale: ({ locale }: { locale: string }) => void;
addLocale: ({ locale, messages }: { locale: string; messages: object }) => void;
getAllLocales: () => string[];
messages: Record<string, object>;
};
declare module '@fesjs/fes' {
interface PluginBuildConfig {
locale?:
| {
locale: string;
fallbackLocale: string;
baseNavigator: boolean;
legacy: boolean;
}
| false;
}
}