fes.js/packages/fes-plugin-locale/types.d.ts

21 lines
546 B
TypeScript
Raw Normal View History

import '@fesjs/fes';
2022-11-10 17:48:34 +08:00
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;
}
2022-03-28 20:17:54 +08:00
}