移动目录
This commit is contained in:
11
mdui_patched/functions/setLocale.js
Normal file
11
mdui_patched/functions/setLocale.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { setLocale as setLocaleInternal, uninitializedError, } from '../internal/localize.js';
|
||||
/**
|
||||
* 切换到指定的语言。返回 Promise,在新的语言包加载完成后 resolve
|
||||
* @param locale 语言代码
|
||||
*/
|
||||
export const setLocale = (locale) => {
|
||||
if (!setLocaleInternal) {
|
||||
throw new Error(uninitializedError);
|
||||
}
|
||||
return setLocaleInternal(locale);
|
||||
};
|
||||
Reference in New Issue
Block a user