This commit is contained in:
Baobhan Sith
2025-04-26 10:12:07 +08:00
parent 209c7ff7d2
commit a79ec3f1d8
10 changed files with 64 additions and 22 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ try {
}
// 确保默认语言在支持列表中,如果目录扫描失败则添加
export const defaultLng = 'en';
export const defaultLng = 'en-US'; // 更新为 en-US
if (!dynamicSupportedLngs.includes(defaultLng)) {
dynamicSupportedLngs.push(defaultLng);
console.warn(`[i18next] Default language '${defaultLng}' not found in detected directories, adding it to supported list.`);