移动目录
This commit is contained in:
8
mdui_patched/functions/loadLocale.js
Normal file
8
mdui_patched/functions/loadLocale.js
Normal file
@@ -0,0 +1,8 @@
|
||||
import { initializeLocalize } from '../internal/localize.js';
|
||||
/**
|
||||
* 加载语言包。参数为一个函数,该函数接收一个语言代码作为参数,返回一个 Promise,resolve 的值为对应的语言包
|
||||
* @param loadFunc
|
||||
*/
|
||||
export const loadLocale = (loadFunc) => {
|
||||
initializeLocalize(loadFunc);
|
||||
};
|
||||
Reference in New Issue
Block a user