Files
LingChair/mdui_patched/functions/loadLocale.js
CrescentLeaf 1cb8ac3fff 移动目录
2025-11-23 13:27:15 +08:00

9 lines
320 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { initializeLocalize } from '../internal/localize.js';
/**
* 加载语言包。参数为一个函数,该函数接收一个语言代码作为参数,返回一个 Promiseresolve 的值为对应的语言包
* @param loadFunc
*/
export const loadLocale = (loadFunc) => {
initializeLocalize(loadFunc);
};