fix: 本地 patch MDUI 以解决 tabindex = 0 导致的一系列玄学问题
This commit is contained in:
11
client/mdui_patched/functions/getLocale.js
Normal file
11
client/mdui_patched/functions/getLocale.js
Normal file
@@ -0,0 +1,11 @@
|
||||
import { getLocale as getLocaleInternal, uninitializedError, } from '../internal/localize.js';
|
||||
/**
|
||||
* 获取当前的语言代码。如果当前正在加载新的语言包,则该函数仍返回先前的语言代码
|
||||
* @return string 当前的语言代码
|
||||
*/
|
||||
export const getLocale = () => {
|
||||
if (!getLocaleInternal) {
|
||||
throw new Error(uninitializedError);
|
||||
}
|
||||
return getLocaleInternal();
|
||||
};
|
||||
Reference in New Issue
Block a user