fix: 本地 patch MDUI 以解决 tabindex = 0 导致的一系列玄学问题

This commit is contained in:
CrescentLeaf
2025-10-04 11:07:03 +08:00
parent af694f6f6c
commit 6e164cbdfb
480 changed files with 94389 additions and 0 deletions

View 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();
};