mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-11-30 02:37:52 +08:00
21 lines
546 B
TypeScript
21 lines
546 B
TypeScript
import '@fesjs/fes';
|
|
|
|
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;
|
|
}
|
|
}
|