mirror of
https://gitee.com/WeBank/fes.js.git
synced 2024-12-04 04:37:43 +08:00
d11095355f
* fix: 修复plugin-locale类型问题 * ci: 添加codeReview action & pr模板
22 lines
561 B
TypeScript
22 lines
561 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;
|
|
}
|
|
}
|