From 9e4b68112cc87baac78413d31e90b60114292f49 Mon Sep 17 00:00:00 2001 From: Vincent Young Date: Thu, 10 Jul 2025 04:30:37 +0800 Subject: [PATCH] fix: i18n zh-TW locale updates (#242) --- frontend/src/lib/i18n/locales.ts | 4 +- frontend/src/lib/i18n/locales/zh-TW.json | 104 +++++++++++------------ 2 files changed, 54 insertions(+), 54 deletions(-) diff --git a/frontend/src/lib/i18n/locales.ts b/frontend/src/lib/i18n/locales.ts index bbec2eb..ddb376f 100644 --- a/frontend/src/lib/i18n/locales.ts +++ b/frontend/src/lib/i18n/locales.ts @@ -27,8 +27,8 @@ export const languages = { "tr-TR": "Türkçe", "uk-UA": "Українська", "vi-VN": "Tiếng Việt", - "zh-CN": "中文", - "zh-TW": "中文", + "zh-CN": "简体中文", + "zh-TW": "繁體中文(台灣)", }; export type SupportedLanguage = keyof typeof languages; diff --git a/frontend/src/lib/i18n/locales/zh-TW.json b/frontend/src/lib/i18n/locales/zh-TW.json index 0eae0bc..d2563f0 100644 --- a/frontend/src/lib/i18n/locales/zh-TW.json +++ b/frontend/src/lib/i18n/locales/zh-TW.json @@ -1,54 +1,54 @@ { - "loginTitle": "Welcome back, login with", - "loginTitleSimple": "Welcome back, please login", - "loginDivider": "Or", - "loginUsername": "Username", - "loginPassword": "Password", - "loginSubmit": "Login", - "loginFailTitle": "Failed to log in", - "loginFailSubtitle": "Please check your username and password", - "loginFailRateLimit": "You failed to login too many times. Please try again later", - "loginSuccessTitle": "Logged in", - "loginSuccessSubtitle": "Welcome back!", - "loginOauthFailTitle": "An error occurred", - "loginOauthFailSubtitle": "Failed to get OAuth URL", - "loginOauthSuccessTitle": "Redirecting", - "loginOauthSuccessSubtitle": "Redirecting to your OAuth provider", - "continueRedirectingTitle": "Redirecting...", - "continueRedirectingSubtitle": "You should be redirected to the app soon", - "continueInvalidRedirectTitle": "Invalid redirect", - "continueInvalidRedirectSubtitle": "The redirect URL is invalid", - "continueInsecureRedirectTitle": "Insecure redirect", - "continueInsecureRedirectSubtitle": "You are trying to redirect from https to http which is not secure. Are you sure you want to continue?", - "continueTitle": "Continue", - "continueSubtitle": "Click the button to continue to your app.", - "logoutFailTitle": "Failed to log out", - "logoutFailSubtitle": "Please try again", - "logoutSuccessTitle": "Logged out", - "logoutSuccessSubtitle": "You have been logged out", - "logoutTitle": "Logout", - "logoutUsernameSubtitle": "You are currently logged in as {{username}}. Click the button below to logout.", - "logoutOauthSubtitle": "You are currently logged in as {{username}} using the {{provider}} OAuth provider. Click the button below to logout.", - "notFoundTitle": "Page not found", - "notFoundSubtitle": "The page you are looking for does not exist.", - "notFoundButton": "Go home", - "totpFailTitle": "Failed to verify code", - "totpFailSubtitle": "Please check your code and try again", - "totpSuccessTitle": "Verified", - "totpSuccessSubtitle": "Redirecting to your app", - "totpTitle": "Enter your TOTP code", - "totpSubtitle": "Please enter the code from your authenticator app.", - "unauthorizedTitle": "Unauthorized", - "unauthorizedResourceSubtitle": "The user with username {{username}} is not authorized to access the resource {{resource}}.", - "unauthorizedLoginSubtitle": "The user with username {{username}} is not authorized to login.", - "unauthorizedGroupsSubtitle": "The user with username {{username}} is not in the groups required by the resource {{resource}}.", - "unauthorizedIpSubtitle": "Your IP address {{ip}} is not authorized to access the resource {{resource}}.", - "unauthorizedButton": "Try again", - "untrustedRedirectTitle": "Untrusted redirect", - "untrustedRedirectSubtitle": "You are trying to redirect to a domain that does not match your configured domain ({{domain}}). Are you sure you want to continue?", - "cancelTitle": "Cancel", - "forgotPasswordTitle": "Forgot your password?", - "failedToFetchProvidersTitle": "Failed to load authentication providers. Please check your configuration.", - "errorTitle": "An error occurred", - "errorSubtitle": "An error occurred while trying to perform this action. Please check the console for more information." + "loginTitle": "歡迎回來,請用以下方式登入", + "loginTitleSimple": "歡迎回來,請登入", + "loginDivider": "或", + "loginUsername": "帳號", + "loginPassword": "密碼", + "loginSubmit": "登入", + "loginFailTitle": "登入失敗", + "loginFailSubtitle": "請檢查您的帳號與密碼", + "loginFailRateLimit": "登入失敗次數過多,請稍後再試", + "loginSuccessTitle": "登入成功", + "loginSuccessSubtitle": "歡迎回來!", + "loginOauthFailTitle": "發生錯誤", + "loginOauthFailSubtitle": "無法取得 OAuth 網址", + "loginOauthSuccessTitle": "重新導向中", + "loginOauthSuccessSubtitle": "正在將您重新導向至 OAuth 供應商", + "continueRedirectingTitle": "重新導向中...", + "continueRedirectingSubtitle": "您即將被重新導向至應用程式", + "continueInvalidRedirectTitle": "無效的重新導向", + "continueInvalidRedirectSubtitle": "重新導向的網址無效", + "continueInsecureRedirectTitle": "不安全的重新導向", + "continueInsecureRedirectSubtitle": "您正嘗試從安全的 https 重新導向至不安全的 http。您確定要繼續嗎?", + "continueTitle": "繼續", + "continueSubtitle": "點擊按鈕以繼續前往您的應用程式。", + "logoutFailTitle": "登出失敗", + "logoutFailSubtitle": "請再試一次", + "logoutSuccessTitle": "登出成功", + "logoutSuccessSubtitle": "您已成功登出", + "logoutTitle": "登出", + "logoutUsernameSubtitle": "您目前以 {{username}} 的身分登入。點擊下方按鈕以登出。", + "logoutOauthSubtitle": "您目前使用 {{provider}} OAuth 供應商並以 {{username}} 的身分登入。點擊下方按鈕以登出。", + "notFoundTitle": "找不到頁面", + "notFoundSubtitle": "您要尋找的頁面不存在。", + "notFoundButton": "回到首頁", + "totpFailTitle": "驗證失敗", + "totpFailSubtitle": "請檢查您的驗證碼並再試一次", + "totpSuccessTitle": "驗證成功", + "totpSuccessSubtitle": "正在重新導向至您的應用程式", + "totpTitle": "輸入您的 TOTP 驗證碼", + "totpSubtitle": "請輸入您驗證器應用程式中的代碼。", + "unauthorizedTitle": "未經授權", + "unauthorizedResourceSubtitle": "使用者 {{username}} 未被授權存取資源 {{resource}}。", + "unauthorizedLoginSubtitle": "使用者 {{username}} 未被授權登入。", + "unauthorizedGroupsSubtitle": "使用者 {{username}} 不在存取資源 {{resource}} 所需的群組中。", + "unauthorizedIpSubtitle": "您的 IP 位址 {{ip}} 未被授權存取資源 {{resource}}。", + "unauthorizedButton": "再試一次", + "untrustedRedirectTitle": "不受信任的重新導向", + "untrustedRedirectSubtitle": "您正嘗試重新導向至的網域與您設定的網域 ({{domain}}) 不符。您確定要繼續嗎?", + "cancelTitle": "取消", + "forgotPasswordTitle": "忘記密碼?", + "failedToFetchProvidersTitle": "載入驗證供應商失敗。請檢查您的設定。", + "errorTitle": "發生錯誤", + "errorSubtitle": "執行此操作時發生錯誤。請檢查主控台以獲取更多資訊。" } \ No newline at end of file