mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
chore:优化多语言注册方式 (#5227)
This commit is contained in:
parent
ba6aae8898
commit
98d0d213bc
@ -16,7 +16,8 @@ const locales: {
|
||||
} = {};
|
||||
|
||||
export function register(name: string, config: LocaleConfig) {
|
||||
locales[name] = config;
|
||||
// 修改为扩展,防止已注册的语料被覆盖
|
||||
extendLocale(name, config);
|
||||
}
|
||||
|
||||
export function extendLocale(name: string, config: LocaleConfig) {
|
||||
|
Loading…
Reference in New Issue
Block a user