From 6df79190d113c22d08ffd6c08d57878d63811459 Mon Sep 17 00:00:00 2001 From: dockfries Date: Tue, 16 Dec 2025 17:24:20 +0800 Subject: [PATCH 1/2] add zh-CN/TW strings --- src/locales/translations/zh-CN.ts | 4 ++++ src/locales/translations/zh-TW.ts | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/src/locales/translations/zh-CN.ts b/src/locales/translations/zh-CN.ts index f6c5a864..d0df4c59 100644 --- a/src/locales/translations/zh-CN.ts +++ b/src/locales/translations/zh-CN.ts @@ -108,4 +108,8 @@ export default { import_failed_description: "导入收藏服务器时发生错误", import_invalid_data_description: "所选文件含无效数据,请选择有效的收藏列表文件", + settigs_custom_game_exe_label: "自定义游戏可执行文件名称", + unable_to_find_custom_game_exe_title: "无法找到自定义游戏可执行文件!", + unable_to_find_custom_game_exe_description: + "在 GTA: San Andreas 目录中找不到指定的自定义游戏可执行文件。请在 设置 -> 高级设置 选项卡中检查。", }; diff --git a/src/locales/translations/zh-TW.ts b/src/locales/translations/zh-TW.ts index aa00bd42..4da6afac 100644 --- a/src/locales/translations/zh-TW.ts +++ b/src/locales/translations/zh-TW.ts @@ -108,4 +108,8 @@ export default { import_failed_description: "導入收藏伺服器時發生錯誤", import_invalid_data_description: "所選檔案含無效資料,請選擇有效的收藏列表檔案", + settigs_custom_game_exe_label: "自訂遊戲可執行檔案名稱", + unable_to_find_custom_game_exe_title: "無法找到自訂遊戲可執行檔案!", + unable_to_find_custom_game_exe_description: + "在 GTA: San Andreas 目錄中找不到指定的自訂遊戲可執行檔案。請在 設置 -> 高級設置 選項卡中檢查。", }; From 3d3ce69ab94d4e5bf6e07506e30439f34af2c2b6 Mon Sep 17 00:00:00 2001 From: dockfries Date: Tue, 16 Dec 2025 18:36:27 +0800 Subject: [PATCH 2/2] fix language code lookup --- src/locales/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/locales/index.ts b/src/locales/index.ts index 2de1d2c7..8f19e92c 100644 --- a/src/locales/index.ts +++ b/src/locales/index.ts @@ -213,7 +213,7 @@ i18n.use(initReactI18next).init({ }, // Add lazy loading capability - load: "languageOnly", + load: "currentOnly", // React specific options react: {