From a2eeb253b3d8acb87d0d2f54914a19a9c75eb7ce Mon Sep 17 00:00:00 2001 From: Jerry Wong Date: Wed, 18 Sep 2024 21:36:10 +0800 Subject: [PATCH] fix: the filename case issue with generate-i18n-locale add zh-hk (#463) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * fix: 补齐lang缺失的翻译 * FIX: ad-dz, ar-ma, ar-sa not work bug * 補齊繁體中文翻譯 * Update generate-i18n-locale.ts * feat: add Traditional Chinese ( Hong Kong) * chore: en first Signed-off-by: Innei --------- Signed-off-by: Innei Co-authored-by: Innei --- apps/main/src/@types/default-resource.ts | 3 + apps/renderer/src/@types/constants.ts | 5 +- locales/app/zh-HK.json | 210 +++++++++++++++++++++++ locales/common/zh-HK.json | 28 +++ locales/external/zh-HK.json | 43 +++++ locales/lang/ar-DZ.json | 1 + locales/lang/ar-MA.json | 1 + locales/lang/ar-SA.json | 1 + locales/lang/en.json | 1 + locales/lang/es.json | 1 + locales/lang/fr.json | 1 + locales/lang/ja.json | 1 + locales/lang/pt.json | 1 + locales/lang/zh-CN.json | 1 + locales/lang/zh-HK.json | 14 ++ locales/lang/zh-TW.json | 1 + locales/native/zh-HK.json | 53 ++++++ locales/settings/zh-HK.json | 203 ++++++++++++++++++++++ locales/settings/zh-TW.json | 2 +- locales/shortcuts/zh-HK.json | 24 +++ scripts/generate-i18n-locale.ts | 86 +++++----- 21 files changed, 635 insertions(+), 46 deletions(-) create mode 100644 locales/app/zh-HK.json create mode 100644 locales/common/zh-HK.json create mode 100644 locales/external/zh-HK.json create mode 100644 locales/lang/zh-HK.json create mode 100644 locales/native/zh-HK.json create mode 100644 locales/settings/zh-HK.json create mode 100644 locales/shortcuts/zh-HK.json diff --git a/apps/main/src/@types/default-resource.ts b/apps/main/src/@types/default-resource.ts index 065b0c1ff..ccbc106fc 100644 --- a/apps/main/src/@types/default-resource.ts +++ b/apps/main/src/@types/default-resource.ts @@ -8,6 +8,7 @@ import common_fr from "../../../../locales/common/fr.json" import common_ja from "../../../../locales/common/ja.json" import common_pt from "../../../../locales/common/pt.json" import common_zhCN from "../../../../locales/common/zh-CN.json" +import common_zhhk from "../../../../locales/common/zh-HK.json" import common_zhTW from "../../../../locales/common/zh-TW.json" import external_en from "../../../../locales/external/en.json" import lang_ardz from "../../../../locales/lang/ar-DZ.json" @@ -19,6 +20,7 @@ import lang_fr from "../../../../locales/lang/fr.json" import lang_ja from "../../../../locales/lang/ja.json" import lang_pt from "../../../../locales/lang/pt.json" import lang_zhCN from "../../../../locales/lang/zh-CN.json" +import lang_zhhk from "../../../../locales/lang/zh-HK.json" import lang_zhTW from "../../../../locales/lang/zh-TW.json" import settings_en from "../../../../locales/settings/en.json" import shortcuts_en from "../../../../locales/shortcuts/en.json" @@ -53,4 +55,5 @@ export const defaultResources = { es: { lang: lang_es, common: common_es }, fr: { lang: lang_fr, common: common_fr }, pt: { lang: lang_pt, common: common_pt }, + "zh-HK": { lang: lang_zhhk, common: common_zhhk }, } diff --git a/apps/renderer/src/@types/constants.ts b/apps/renderer/src/@types/constants.ts index b0527c80a..c701e504a 100644 --- a/apps/renderer/src/@types/constants.ts +++ b/apps/renderer/src/@types/constants.ts @@ -1,5 +1,5 @@ -const langs = ["en", "ja", "zh-CN", "zh-TW", "pt", "fr", "ar-DZ", "ar-SA", "ar-MA"] -export const currentSupportedLanguages = langs.sort() +const langs = ["ja", "zh-CN", "zh-TW", "pt", "fr", "ar-DZ", "ar-SA", "ar-MA", "zh-HK"] +export const currentSupportedLanguages = ["en", ...langs.sort()] export const dayjsLocaleImportMap = { en: ["en", () => import("dayjs/locale/en")], ["zh-CN"]: ["zh-cn", () => import("dayjs/locale/zh-cn")], @@ -11,6 +11,7 @@ export const dayjsLocaleImportMap = { ["fr"]: ["fr", () => import("dayjs/locale/fr")], ["pt"]: ["pt", () => import("dayjs/locale/pt")], ["zh-TW"]: ["zh-tw", () => import("dayjs/locale/zh-tw")], + ["zh-HK"]: ["zh-hk", () => import("dayjs/locale/zh-hk")], } export const ns = ["app", "common", "lang", "settings", "shortcuts"] as const export const defaultNS = "app" as const diff --git a/locales/app/zh-HK.json b/locales/app/zh-HK.json new file mode 100644 index 000000000..e17dc6e21 --- /dev/null +++ b/locales/app/zh-HK.json @@ -0,0 +1,210 @@ +{ + "ai_daily.title": "頭條新聞 - {{title}}", + "ai_daily.tooltip.content": "以下是由 AI 從你的時間線中選出的新聞( - ),可能對你很重要。", + "ai_daily.tooltip.update_schedule": "每天上午 8 點和下午 8 點更新。", + "app.copy_logo_svg": "複製 Logo SVG", + "app.toggle_sidebar": "切換側邊欄", + "discover.any_url_or_keyword": "任何網址或關鍵字", + "discover.default_option": " (預設)", + "discover.feed_description": "此訂閱源的描述如下,你可以根據相關資訊填寫參數表格。", + "discover.feed_maintainers": "此訂閱源由 RSSHub 提供,感謝 ", + "discover.import.click_to_upload": "上傳 OPML 文件", + "discover.popular": "熱門", + "discover.preview": "預覽", + "discover.rss_hub_route": "RSSHub 路由", + "discover.rss_url": "RSS 網址", + "discover.select_placeholder": "選擇", + "early_access": "提前體驗", + "entry_actions.copy_link": "複製連結", + "entry_actions.failed_to_save_to_eagle": "無法保存至 Eagle。", + "entry_actions.failed_to_save_to_instapaper": "無法保存至 Instapaper。", + "entry_actions.failed_to_save_to_readwise": "無法保存至 Readwise。", + "entry_actions.link_copied": "連結已複製到剪貼簿。", + "entry_actions.mark_as_read": "標記為已讀", + "entry_actions.mark_as_unread": "標記為未讀", + "entry_actions.open_in_browser": "在瀏覽器中開啟", + "entry_actions.save_media_to_eagle": "保存媒體至 Eagle", + "entry_actions.save_to_instapaper": "保存至 Instapaper", + "entry_actions.save_to_readwise": "保存至 Readwise", + "entry_actions.saved_to_eagle": "已保存至 Eagle。", + "entry_actions.saved_to_instapaper": "已保存至 Instapaper。", + "entry_actions.saved_to_readwise": "已保存至 Readwise。", + "entry_actions.share": "分享", + "entry_actions.star": "收藏", + "entry_actions.starred": "已收藏。", + "entry_actions.tip": "贊助", + "entry_actions.unstar": "取消收藏", + "entry_actions.unstarred": "已取消收藏。", + "entry_column.filtered_content_tip": "你已隱藏篩選內容。", + "entry_column.filtered_content_tip_2": "除了以上顯示的條目,還有一些已篩選的內容。", + "entry_column.refreshing": "刷新新條目中...", + "entry_content.ai_summary": "AI 摘要", + "entry_content.fetching_content": "正在抓取原始內容並處理中...", + "entry_content.header.play_tts": "播放 TTS", + "entry_content.header.readability": "Readability", + "entry_content.no_content": "無內容", + "entry_content.readability_notice": "此內容由 Readability 提供。如果你發現排版異常,請到來源網站查看原始內容。", + "entry_content.render_error": "渲染錯誤:", + "entry_content.report_issue": "報告問題", + "entry_content.support_amount": "{{amount}} 人支持了此訂閱源的創作者。", + "entry_content.support_creator": "支持創作者", + "entry_content.web_app_notice": "網頁應用可能不支持此內容類型。你可以下載桌面應用程式。", + "entry_list.zero_unread": "全部已讀", + "entry_list_header.daily_report": "每日報告", + "entry_list_header.hide_no_image_items": "隱藏沒有圖片的條目。", + "entry_list_header.items": "項目", + "entry_list_header.new_entries_available": "有新條目可用", + "entry_list_header.refetch": "重新抓取", + "entry_list_header.refresh": "刷新", + "entry_list_header.show_all": "顯示所有", + "entry_list_header.show_all_items": "顯示所有條目", + "entry_list_header.show_unread_only": "僅顯示未讀", + "entry_list_header.switch_to_grid": "切換到網格視圖", + "entry_list_header.switch_to_masonry": "切換到 Masonry 視圖", + "entry_list_header.unread": "未讀", + "feed_claim_modal.choose_verification_method": "有三種驗證方法可選,你可以選擇其中一種進行驗證。", + "feed_claim_modal.claim_button": "認領", + "feed_claim_modal.content_instructions": "複製以下內容並貼到你最新的 RSS 訂閱源中。", + "feed_claim_modal.description_current": "當前描述:", + "feed_claim_modal.description_instructions": "複製以下內容並貼到你的 RSS 訂閱源中的 欄位。", + "feed_claim_modal.failed_to_load": "無法加載認領信息", + "feed_claim_modal.rss_format_choice": "RSS 生成器通常有兩種格式可選。請根據需要複製以下的 XML 和 JSON 格式。", + "feed_claim_modal.rss_instructions": "複製以下代碼並貼到你的 RSS 生成器中。", + "feed_claim_modal.rss_json_format": "JSON 格式", + "feed_claim_modal.rss_xml_format": "XML 格式", + "feed_claim_modal.rsshub_notice": "此訂閱源由 RSSHub 提供,緩存時間為1小時。發布內容後,請等待最多1小時更改才能生效。", + "feed_claim_modal.tab_content": "內容", + "feed_claim_modal.tab_description": "描述", + "feed_claim_modal.tab_rss": "RSS 標籤", + "feed_claim_modal.verify_ownership": "要認領這個訂閱源,你需要驗證所有權。", + "feed_form.add_follow": "新增關注", + "feed_form.category": "分類", + "feed_form.category_description": "默認情況下,你的關注會按網站分組。", + "feed_form.error_fetching_feed": "獲取訂閱源時出錯。", + "feed_form.feed_not_found": "未找到訂閱源。", + "feed_form.feedback": "反饋", + "feed_form.follow": "關注", + "feed_form.followed": "🎉 已關注。", + "feed_form.private_follow": "私人關注", + "feed_form.private_follow_description": "此關注是否在你的個人資料頁面上公開可見。", + "feed_form.retry": "重試", + "feed_form.title": "標題", + "feed_form.title_description": "此資訊流的自定義標題。留空則使用默認標題。", + "feed_form.unfollow": "取消關注", + "feed_form.update": "更新", + "feed_form.update_follow": "更新關注", + "feed_form.updated": "🎉 已更新。", + "feed_form.view": "視圖", + "feed_item.claimed_by_owner": "訂閲源所有者", + "feed_item.claimed_by_unknown": "未知所有者", + "feed_item.claimed_by_you": "由你認領", + "feed_item.claimed_feed": "已認領訂閱源", + "feed_item.error_since": "錯誤始於", + "feed_item.not_publicly_visible": "在你的個人頁面上不公開可見", + "feed_view_type.articles": "文章", + "feed_view_type.audios": "音頻", + "feed_view_type.notifications": "通知", + "feed_view_type.pictures": "圖片", + "feed_view_type.social_media": "社交媒體", + "feed_view_type.videos": "視頻", + "mark_all_read_button.auto_confirm_info": "將在 3 秒後自動確認。", + "mark_all_read_button.confirm": "確認", + "mark_all_read_button.confirm_mark_all": "確定將 {{which}} 標記為已讀?", + "mark_all_read_button.confirm_mark_all_info": "確定將所有標記為已讀?", + "mark_all_read_button.mark_all_as_read": "全部標記為已讀", + "mark_all_read_button.mark_as_read": "標記 {{which}} 為已讀", + "mark_all_read_button.undo": "撤銷", + "player.back_10s": "倒退 10 秒", + "player.close": "關閉", + "player.download": "下載", + "player.exit_full_screen": "退出全屏", + "player.forward_10s": "快進 10 秒", + "player.full_screen": "全屏", + "player.mute": "靜音", + "player.open_entry": "打開條目", + "player.pause": "暫停", + "player.play": "播放", + "player.playback_rate": "播放速度", + "player.unmute": "取消靜音", + "player.volume": "音量", + "search.empty.no_results": "未找到結果。", + "search.group.entries": "條目", + "search.group.feeds": "訂閱源", + "search.options.all": "所有", + "search.options.entries": "條目", + "search.options.feeds": "訂閱源", + "search.options.search_type": "搜尋類型", + "search.placeholder": "搜尋...", + "search.result_count_local_mode": "(本地模式)", + "search.tooltip.local_search": "此搜尋涵蓋本地可用的數據。嘗試重新獲取以包括最新數據。", + "shortcuts.guide.title": "快捷鍵指南", + "sidebar.category_remove_dialog.cancel": "取消", + "sidebar.category_remove_dialog.continue": "繼續", + "sidebar.category_remove_dialog.description": "此操作將刪除你的分類,但其中的訂閱源將保留並按網站分組。", + "sidebar.category_remove_dialog.title": "刪除分類", + "sidebar.feed_actions.claim": "認領", + "sidebar.feed_actions.claim_feed": "認領訂閱源", + "sidebar.feed_actions.copy_feed_id": "複製訂閱源 ID", + "sidebar.feed_actions.copy_feed_url": "複製訂閱源 URL", + "sidebar.feed_actions.edit": "編輯", + "sidebar.feed_actions.edit_feed": "編輯訂閱源", + "sidebar.feed_actions.feed_owned_by_you": "此訂閱源由你擁有", + "sidebar.feed_actions.mark_all_as_read": "全部標記為已讀", + "sidebar.feed_actions.navigate_to_feed": "導航到訂閱源", + "sidebar.feed_actions.open_feed_in_browser": "在瀏覽器中打開訂閱源", + "sidebar.feed_actions.open_site_in_browser": "在瀏覽器中打開網站", + "sidebar.feed_actions.unfollow": "取消關注", + "sidebar.feed_actions.unfollow_feed": "取消關注訂閱源", + "sidebar.feed_column.context_menu.change_to_other_view": "切換到其他視圖", + "sidebar.feed_column.context_menu.delete_category": "刪除分類", + "sidebar.feed_column.context_menu.delete_category_confirmation": "確定刪除分類 {{folderName}}?", + "sidebar.feed_column.context_menu.mark_as_read": "標記為已讀", + "sidebar.feed_column.context_menu.rename_category": "重新命名分類", + "sidebar.select_sort_method": "選擇排序方法", + "signin.continue_with_github": "繼續使用 GitHub", + "signin.continue_with_google": "繼續使用 Google", + "signin.sign_in_to": "登入至", + "sync_indicator.disabled": "由於安全原因,同步已禁用。", + "sync_indicator.offline": "離線", + "sync_indicator.synced": "已與伺服器同步", + "tip_modal.amount": "金額", + "tip_modal.claim_feed": "認領這個訂閱源", + "tip_modal.create_wallet": "免費創建", + "tip_modal.feed_owner": "訂閱源擁有者", + "tip_modal.low_balance": "你的餘額不足以覆蓋此贊助。請調整金額。", + "tip_modal.no_wallet": "你尚未擁有錢包。請創建一個錢包以進行贊助。", + "tip_modal.tip_amount_sent": "已經發送給作者。", + "tip_modal.tip_now": "立刻贊助", + "tip_modal.tip_sent": "贊助成功!感謝你的支持。", + "tip_modal.tip_support": "⭐ 贊助以顯示你的支持!", + "tip_modal.unclaimed_feed": "目前尚未有人認領此訂閱源。收到的 Power 將安全地保留在區塊鏈合約中,直到被認領為止。", + "user_button.account": "帳戶", + "user_button.download_desktop_app": "下載桌面應用", + "user_button.log_out": "登出", + "user_button.power": "Power", + "user_button.preferences": "偏好設定", + "user_button.profile": "個人檔案", + "user_profile.close": "關閉", + "user_profile.edit": "編輯", + "user_profile.loading": "載入中", + "user_profile.share": "分享", + "user_profile.toggle_item_style": "切換條目樣式", + "words.add": "新增", + "words.confirm": "確認", + "words.discover": "探索", + "words.email": "電子郵件", + "words.import": "匯入", + "words.items": "項目", + "words.language": "語言", + "words.load_archived_entries": "加載已存檔的條目", + "words.login": "登入", + "words.rss": "RSS", + "words.rss3": "RSS3", + "words.rsshub": "RSSHub", + "words.search": "搜尋", + "words.starred": "收藏", + "words.unread": "未讀", + "words.user": "用戶", + "words.which.all": "所有", + "words.zero_items": "零項目" +} diff --git a/locales/common/zh-HK.json b/locales/common/zh-HK.json new file mode 100644 index 000000000..36f3ec1d9 --- /dev/null +++ b/locales/common/zh-HK.json @@ -0,0 +1,28 @@ +{ + "app.copied_to_clipboard": "已複製到剪貼簿", + "cancel": "取消", + "confirm": "確認", + "ok": "確定", + "quantifier.piece": "", + "time.last_night": "昨晚", + "time.the_night_before_last": "前晚", + "time.today": "今天", + "time.yesterday": "昨天", + "tips.load-lng-error": "加載語言包失敗", + "words.back": "返回", + "words.copy": "複製", + "words.edit": "編輯", + "words.entry": "條目", + "words.id": "ID", + "words.items_one": "項目", + "words.items_other": "項目", + "words.local": "本地", + "words.record": "記錄", + "words.record_one": "記錄", + "words.record_other": "記錄", + "words.result": "結果", + "words.result_one": "結果", + "words.result_other": "結果", + "words.space": " ", + "words.which.all": "全部" +} diff --git a/locales/external/zh-HK.json b/locales/external/zh-HK.json new file mode 100644 index 000000000..8345a15a7 --- /dev/null +++ b/locales/external/zh-HK.json @@ -0,0 +1,43 @@ +{ + "copied_link": "鏈接已複製到剪貼簿", + "feed": { + "follower_one": "追隨者", + "follower_other": "追隨者", + "followsAndReads": "{{subscriptionCount}} 個 {{subscriptionNoun}} 和 {{readCount}} 個 {{readNoun}} 在 {{appName}}", + "read_one": "閱讀", + "read_other": "閱讀數" + }, + "header": { + "app": "應用程式", + "download": "下載" + }, + "invitation": { + "activate": "激活", + "codeOptions": { + "1": "尋找任何內測測試用戶邀請你。", + "2": "加入我們的 Discord 伺服器,不定期贈送邀請碼。", + "3": "關注我們的 X 帳戶,不定期贈送邀請碼。" + }, + "earlyAccess": "Follow 目前處於早期訪問階段,使用需要邀請碼。", + "earlyAccessMessage": "😰 抱歉,Follow 目前處於早期訪問階段,使用需要邀請碼。", + "generateButton": "生成新邀請碼", + "generateCost": "你可以花費 {{INVITATION_PRICE}} Power 為你的朋友生成邀請碼。", + "getCodeMessage": "你可以通過以下方式獲取邀請碼:", + "title": "邀請碼" + }, + "login": { + "backToWebApp": "返回網頁應用程式", + "continueWithGitHub": "繼續使用 GitHub", + "continueWithGoogle": "繼續使用 Google", + "logInTo": "登錄到", + "openApp": "打開應用程式", + "redirecting": "重定向中", + "welcomeTo": "歡迎來到" + }, + "redirect": { + "continueInBrowser": "在瀏覽器中繼續", + "instruction": "現在是時候打開 {{APP_NAME}} 並安全地關閉此頁面。", + "openApp": "打開 {{APP_NAME}}", + "successMessage": "你已成功連接到 {{APP_NAME}} 帳戶。" + } +} diff --git a/locales/lang/ar-DZ.json b/locales/lang/ar-DZ.json index a5ad67b85..5de2332c3 100644 --- a/locales/lang/ar-DZ.json +++ b/locales/lang/ar-DZ.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (الجزائر)" } diff --git a/locales/lang/ar-MA.json b/locales/lang/ar-MA.json index 88ecdd0da..570a057d2 100644 --- a/locales/lang/ar-MA.json +++ b/locales/lang/ar-MA.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (المغرب)" } diff --git a/locales/lang/ar-SA.json b/locales/lang/ar-SA.json index 715a89053..fd3a99524 100644 --- a/locales/lang/ar-SA.json +++ b/locales/lang/ar-SA.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "العربية (السعودية)" } diff --git a/locales/lang/en.json b/locales/lang/en.json index 942561441..57ecd610c 100644 --- a/locales/lang/en.json +++ b/locales/lang/en.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "English" } diff --git a/locales/lang/es.json b/locales/lang/es.json index f81eb723f..4fb74e760 100644 --- a/locales/lang/es.json +++ b/locales/lang/es.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Español" } diff --git a/locales/lang/fr.json b/locales/lang/fr.json index 37c1607bf..4550974c1 100644 --- a/locales/lang/fr.json +++ b/locales/lang/fr.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Français" } diff --git a/locales/lang/ja.json b/locales/lang/ja.json index 56024c445..36f8e43f0 100644 --- a/locales/lang/ja.json +++ b/locales/lang/ja.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "日本語" } diff --git a/locales/lang/pt.json b/locales/lang/pt.json index a5dcac0c6..e57652309 100644 --- a/locales/lang/pt.json +++ b/locales/lang/pt.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "Português" } diff --git a/locales/lang/zh-CN.json b/locales/lang/zh-CN.json index 957621e92..1be773187 100644 --- a/locales/lang/zh-CN.json +++ b/locales/lang/zh-CN.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "简体中文" } diff --git a/locales/lang/zh-HK.json b/locales/lang/zh-HK.json new file mode 100644 index 000000000..b893e3c4b --- /dev/null +++ b/locales/lang/zh-HK.json @@ -0,0 +1,14 @@ +{ + "langs.ar-DZ": "العربية (الجزائر)", + "langs.ar-MA": "العربية (المغرب)", + "langs.ar-SA": "العربية (السعودية)", + "langs.en": "English", + "langs.es": "Español", + "langs.fr": "Français", + "langs.ja": "日本語", + "langs.pt": "Português", + "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", + "langs.zh-TW": "繁體中文(台灣)", + "name": "繁體中文(香港)" +} diff --git a/locales/lang/zh-TW.json b/locales/lang/zh-TW.json index 495dddb2a..19d4b6a63 100644 --- a/locales/lang/zh-TW.json +++ b/locales/lang/zh-TW.json @@ -8,6 +8,7 @@ "langs.ja": "日本語", "langs.pt": "Português", "langs.zh-CN": "简体中文", + "langs.zh-HK": "繁體中文(香港)", "langs.zh-TW": "繁體中文(台灣)", "name": "繁體中文(台灣)" } diff --git a/locales/native/zh-HK.json b/locales/native/zh-HK.json new file mode 100644 index 000000000..6c4d18c7f --- /dev/null +++ b/locales/native/zh-HK.json @@ -0,0 +1,53 @@ +{ + "contextMenu.copyImage": "複製圖片", + "contextMenu.copyImageAddress": "複製圖片地址", + "contextMenu.copyLink": "複製鏈接", + "contextMenu.copyVideoAddress": "複製視頻地址", + "contextMenu.inspect": "檢查元素", + "contextMenu.openImageInBrowser": "在瀏覽器中打開圖片", + "contextMenu.openLinkInBrowser": "在瀏覽器中打開鏈接", + "contextMenu.saveImageAs": "另存圖片為...", + "contextMenu.saveVideoAs": "另存視頻為...", + "menu.about": "關於 {{name}}", + "menu.actualSize": "實際大小", + "menu.bringAllToFront": "將所有窗口移到最前面", + "menu.checkForUpdates": "檢查更新", + "menu.close": "關閉", + "menu.copy": "複製", + "menu.cut": "剪切", + "menu.debug": "調試", + "menu.delete": "刪除", + "menu.discover": "發現", + "menu.edit": "編輯", + "menu.file": "文件", + "menu.followReleases": "關注更新", + "menu.forceReload": "強制重載", + "menu.front": "移到最前面", + "menu.help": "幫助", + "menu.hide": "隱藏 {{name}}", + "menu.hideOthers": "隱藏其他窗口", + "menu.minimize": "最小化", + "menu.openLogFile": "打開日誌文件", + "menu.paste": "粘貼", + "menu.pasteAndMatchStyle": "粘貼並匹配樣式", + "menu.quickAdd": "快速添加", + "menu.quit": "退出 {{name}}", + "menu.quitAndInstallUpdate": "調試:退出並安裝更新", + "menu.redo": "重做", + "menu.reload": "重載", + "menu.search": "搜尋", + "menu.selectAll": "全選", + "menu.services": "服務", + "menu.settings": "設定...", + "menu.speech": "語音", + "menu.startSpeaking": "開始朗讀", + "menu.stopSpeaking": "停止朗讀", + "menu.toggleDevTools": "切換開發者工具", + "menu.toggleFullScreen": "切換全屏", + "menu.undo": "撤銷", + "menu.view": "查看", + "menu.window": "窗口", + "menu.zoom": "縮放", + "menu.zoomIn": "放大", + "menu.zoomOut": "縮小" +} diff --git a/locales/settings/zh-HK.json b/locales/settings/zh-HK.json new file mode 100644 index 000000000..68e2a34c1 --- /dev/null +++ b/locales/settings/zh-HK.json @@ -0,0 +1,203 @@ +{ + "about.changelog": "更新日誌", + "about.feedbackInfo": "{{appName}}({{commitSha}})仍處於開發初期階段。如果你有任何意見或建議,歡迎到我們的 GitHub 提交問題 。", + "about.iconLibrary": "所使用的圖示庫受 版權保護,不能轉發。", + "about.licenseInfo": "{{appName}} 永遠會是一個免費和開源的項目,並根據 {{license}} 授權使用。", + "about.sidebar_title": "關於", + "about.socialMedia": "社交媒體", + "actions.actionName": "動作 {{number}}", + "actions.action_card.add": "新增", + "actions.action_card.all": "全部", + "actions.action_card.block_rules": "阻擋規則", + "actions.action_card.custom_filters": "自訂過濾器", + "actions.action_card.enable_readability": "啟用 Readability", + "actions.action_card.entry_options.all": "全部", + "actions.action_card.entry_options.author": "作者", + "actions.action_card.entry_options.content": "內容", + "actions.action_card.entry_options.order": "順序", + "actions.action_card.entry_options.title": "標題", + "actions.action_card.entry_options.url": "網址", + "actions.action_card.feed_options.category": "分類", + "actions.action_card.feed_options.feed_url": "RSS 連結", + "actions.action_card.feed_options.site_url": "網站連結", + "actions.action_card.feed_options.title": "標題", + "actions.action_card.feed_options.view": "檢視", + "actions.action_card.field": "欄位", + "actions.action_card.from": "從", + "actions.action_card.generate_summary": "使用 AI 生成摘要", + "actions.action_card.name": "名稱", + "actions.action_card.operation_options.contains": "包含", + "actions.action_card.operation_options.does_not_contain": "不包含", + "actions.action_card.operation_options.is_equal_to": "等於", + "actions.action_card.operation_options.is_greater_than": "大於", + "actions.action_card.operation_options.is_less_than": "小於", + "actions.action_card.operation_options.is_not_equal_to": "不等於", + "actions.action_card.operation_options.matches_regex": "符合正則表達式", + "actions.action_card.operator": "運算子", + "actions.action_card.rewrite_rules": "改寫規則", + "actions.action_card.then_do": "然後執行…", + "actions.action_card.to": "到", + "actions.action_card.translate_into": "翻譯成", + "actions.action_card.value": "數值", + "actions.action_card.when_feeds_match": "當 RSS 匹配時…", + "actions.newRule": "新增規則", + "actions.save": "儲存", + "actions.saveSuccess": "🎉 動作已儲存。", + "actions.sidebar_title": "動作", + "actions.title": "動作", + "appearance.code_highlight_theme": "程式碼高亮主題", + "appearance.content": "內容", + "appearance.content_font": "內容字體", + "appearance.custom_font": "自訂字體", + "appearance.fonts": "字體", + "appearance.general": "一般", + "appearance.guess_code_language.description": "使用模型來推斷未標註程式碼區塊的主要程式語言", + "appearance.guess_code_language.label": "推測程式語言", + "appearance.misc": "其他", + "appearance.modal_overlay.description": "顯示模態覆蓋", + "appearance.modal_overlay.label": "顯示模態覆蓋", + "appearance.opaque_sidebars.label": "不透明側邊欄", + "appearance.reader_render_inline_style.description": "允許渲染原始 HTML 的行內樣式。", + "appearance.reader_render_inline_style.label": "渲染行內樣式", + "appearance.reduce_motion.description": "減少元素的動態以提升效能及減少耗電", + "appearance.reduce_motion.label": "減少動態效果", + "appearance.save": "儲存", + "appearance.show_dock_badge.label": "顯示 Dock 標籤", + "appearance.sidebar_show_unread_count.label": "側邊欄顯示未讀數量", + "appearance.sidebar_title": "外觀", + "appearance.text_size": "文字大小", + "appearance.theme.dark": "深色", + "appearance.theme.label": "主題", + "appearance.theme.light": "淺色", + "appearance.theme.system": "系統", + "appearance.title": "外觀", + "appearance.ui_font": "介面字體", + "appearance.unread_count": "未讀數量", + "feeds.claimTips": "要認領你的 feed 並接收贊助,請右鍵點擊訂閱列表中的 feed,然後選擇「認領」。", + "feeds.noFeeds": "沒有已認領的 feed", + "feeds.tableHeaders.entryCount": "條目數", + "feeds.tableHeaders.name": "名稱", + "feeds.tableHeaders.subscriptionCount": "訂閱數", + "feeds.tableHeaders.tipAmount": "收到的贊助", + "general.app": "應用程式", + "general.data_persist.description": "本地保存數據以啟用離線存取和本地搜尋。", + "general.data_persist.label": "離線使用時保留數據", + "general.group_by_date.description": "按日期分組條目。", + "general.group_by_date.label": "按日期分組", + "general.language": "語言", + "general.launch_at_login": "登入時啟動", + "general.mark_as_read.hover.description": "游標懸停時自動將條目標記為已讀。", + "general.mark_as_read.hover.label": "懸停時標記為已讀", + "general.mark_as_read.render.description": "當條目進入視圖時,會自動標記單層條目(例如社交媒體貼文、圖片、視頻觀看)為已讀。", + "general.mark_as_read.render.label": "在視圖中時標記為已讀", + "general.mark_as_read.scroll.description": "當滾動出視圖時,自動標記條目為已讀。", + "general.mark_as_read.scroll.label": "滾動時標記為已讀", + "general.privacy_data": "隱私與數據", + "general.rebuild_database.button": "重建", + "general.rebuild_database.description": "如果你遇到渲染問題,重建數據庫可能會解決問題。", + "general.rebuild_database.label": "重建數據庫", + "general.rebuild_database.title": "重建數據庫", + "general.rebuild_database.warning.line1": "重建數據庫會清除所有本地數據。", + "general.rebuild_database.warning.line2": "你確定要繼續嗎?", + "general.send_anonymous_data.description": "選擇發送匿名的遙測數據,將有助於提升 Follow 的整體用戶體驗。", + "general.send_anonymous_data.label": "發送匿名數據", + "general.show_unread_on_launch.description": "啟動時顯示未讀內容", + "general.show_unread_on_launch.label": "啟動時顯示未讀內容", + "general.sidebar_title": "一般", + "general.timeline": "時間軸", + "general.unread": "未讀", + "general.voices": "語音", + "integration.eagle.enable.description": "顯示\"將媒體保存到 Eagle\"按鈕(如果可用)。", + "integration.eagle.enable.label": "啟用", + "integration.eagle.title": "Eagle", + "integration.instapaper.enable.description": "顯示\"保存到 Instapaper\"按钮(如果可用)。", + "integration.instapaper.enable.label": "啟用", + "integration.instapaper.password.label": "Instapaper 密碼", + "integration.instapaper.title": "Instapaper", + "integration.instapaper.username.label": "Instapaper 用戶名", + "integration.readwise.enable.description": "顯示\"保存到 Readwise\"按钮(如果可用)。", + "integration.readwise.enable.label": "啟用", + "integration.readwise.title": "Readwise", + "integration.readwise.token.description": "你可以在這裡獲取", + "integration.readwise.token.label": "Readwise 訪問令牌", + "integration.sidebar_title": "集成", + "integration.tip": "提示:你的敏感數據存儲在本地,未上傳到服務器。", + "integration.title": "集成", + "invitation.activate": "啟用", + "invitation.codeOptions.betaUser": "1. 找一個邀請你的測試用戶。", + "invitation.codeOptions.discord": "2. 加入我們的 Discord 伺服器,偶爾獲得贈品。", + "invitation.codeOptions.xAccount": "3. 關注我們的 X 帳號,偶爾獲得贈品。", + "invitation.confirmModal.cancel": "取消", + "invitation.confirmModal.confirm": "你要繼續嗎?", + "invitation.confirmModal.continue": "繼續", + "invitation.confirmModal.message": "生成邀請代碼將消耗 {{INVITATION_PRICE}} Power。", + "invitation.confirmModal.title": "確認", + "invitation.earlyAccess": "Follow 目前處於早期開發階段,需要邀請代碼才能使用。", + "invitation.earlyAccessMessage": "😰 對不起,Follow 目前處於早期開發階段,需要邀請代碼才能使用。", + "invitation.generateButton": "生成新代碼", + "invitation.generateCost": "你可以花費 {{INVITATION_PRICE}} Power 來生成邀請代碼給你的朋友。", + "invitation.getCodeMessage": "你可以通過以下方法獲得邀請代碼:", + "invitation.limitationMessage": "根據你的使用時間,你最多可以生成 {{limitation}} 個邀請代碼。", + "invitation.newInvitationSuccess": "🎉 新邀請代碼已生成,代碼已複製", + "invitation.noInvitations": "沒有邀請", + "invitation.notUsed": "未使用", + "invitation.sidebar_title": "邀請", + "invitation.tableHeaders.code": "代碼", + "invitation.tableHeaders.creationTime": "創建時間", + "invitation.tableHeaders.usedBy": "使用者", + "invitation.title": "邀請代碼", + "profile.avatar.label": "頭像", + "profile.handle.description": "你的唯一識別符。", + "profile.handle.label": "識別符", + "profile.name.description": "你的公開顯示名稱。", + "profile.name.label": "顯示名稱", + "profile.sidebar_title": "個人資料", + "profile.submit": "提交", + "profile.title": "個人資料設置", + "profile.updateSuccess": "個人資料已更新。", + "titles.about": "關於", + "titles.actions": "動作", + "titles.appearance": "外觀", + "titles.feeds": "訂閱源", + "titles.general": "一般", + "titles.integration": "集成", + "titles.invitations": "邀請", + "titles.power": "Power", + "titles.profile": "個人資料", + "titles.shortcuts": "快捷鍵", + "wallet.address.title": "你的地址", + "wallet.balance.title": "餘額", + "wallet.balance.withdrawable": "可提取", + "wallet.balance.withdrawableTooltip": "可提取的 Power 包括你收到的小費和你充值的 Power。", + "wallet.claim.button.claim": "領取每日 Power", + "wallet.claim.button.claimed": "今日已領取", + "wallet.claim.tooltip.alreadyClaimed": "你今天已領取。", + "wallet.claim.tooltip.canClaim": "立即領取你的 {{amount}} 每日 Power!", + "wallet.create.button": "創建錢包", + "wallet.create.description": "創建一個免費的錢包來接收 Power,可以用來贊助創作者,也可以因你的內容貢獻而獲得回報。", + "wallet.power.dailyClaim": "你可以每日領取 {{amount}} 免費的 Power,用於在 Follow 上贊助 RSS 條目。", + "wallet.power.description": "Power 是一個 ERC-20 代幣,基於 {{blockchainName}} 區塊鏈。", + "wallet.sidebar_title": "Power", + "wallet.transactions.amount": "數量", + "wallet.transactions.date": "日期", + "wallet.transactions.from": "來自", + "wallet.transactions.noTransactions": "無交易記錄", + "wallet.transactions.title": "交易", + "wallet.transactions.to": "發送至", + "wallet.transactions.tx": "交易", + "wallet.transactions.type": "類型", + "wallet.transactions.types.burn": "burn", + "wallet.transactions.types.mint": "mint", + "wallet.transactions.types.purchase": "purchase", + "wallet.transactions.types.tip": "tip", + "wallet.transactions.types.withdraw": "withdraw", + "wallet.transactions.you": "你", + "wallet.withdraw.addressLabel": "你的以太坊地址", + "wallet.withdraw.amountLabel": "數量", + "wallet.withdraw.availableBalance": "你有 可提取的 Power 在你的錢包中。", + "wallet.withdraw.button": "提取", + "wallet.withdraw.error": "提取失敗:{{error}}", + "wallet.withdraw.modalTitle": "提取 Power", + "wallet.withdraw.submitButton": "提交", + "wallet.withdraw.success": "提取成功!" +} diff --git a/locales/settings/zh-TW.json b/locales/settings/zh-TW.json index e8aa37ed6..2fbc13581 100644 --- a/locales/settings/zh-TW.json +++ b/locales/settings/zh-TW.json @@ -53,7 +53,7 @@ "appearance.general": "一般", "appearance.guess_code_language.description": "使用模型來推斷未標記程式碼區塊的主要程式語言", "appearance.guess_code_language.label": "推測程式碼語言", - "appearance.misc": "Misc", + "appearance.misc": "其他", "appearance.modal_overlay.description": "顯示模態覆蓋層", "appearance.modal_overlay.label": "顯示模態覆蓋層", "appearance.opaque_sidebars.label": "不透明側邊欄", diff --git a/locales/shortcuts/zh-HK.json b/locales/shortcuts/zh-HK.json new file mode 100644 index 000000000..e6b627541 --- /dev/null +++ b/locales/shortcuts/zh-HK.json @@ -0,0 +1,24 @@ +{ + "keys.audio.playPause": "播放/暫停(當音頻播放器開啟時)", + "keys.entries.markAllAsRead": "標記所有為已讀", + "keys.entries.next": "下一條目", + "keys.entries.previous": "上一條目", + "keys.entries.refetch": "重新抓取", + "keys.entries.toggleUnreadOnly": "切換僅顯示未讀", + "keys.entry.copyLink": "複製連結", + "keys.entry.openInBrowser": "在瀏覽器中開啟", + "keys.entry.openInNewTab": "在新分頁中開啟", + "keys.entry.scrollDown": "向下滾動", + "keys.entry.scrollUp": "向上滾動", + "keys.entry.share": "分享", + "keys.entry.tip": "贊助 Power", + "keys.entry.toggleRead": "切換已讀/未讀", + "keys.entry.toggleStarred": "切換收藏/取消收藏", + "keys.entry.tts": "文字轉語音", + "keys.feeds.add": "新增訂閱", + "keys.feeds.switchBetweenViews": "切換視圖", + "keys.feeds.switchToView": "切換到視圖", + "keys.layout.showShortcuts": "顯示/隱藏快捷鍵", + "keys.layout.toggleSidebar": "顯示/隱藏訂閱側邊欄", + "sidebar_title": "快捷鍵" +} diff --git a/scripts/generate-i18n-locale.ts b/scripts/generate-i18n-locale.ts index 06c302033..27113198a 100644 --- a/scripts/generate-i18n-locale.ts +++ b/scripts/generate-i18n-locale.ts @@ -10,20 +10,20 @@ import * as ts from "typescript" const locales = [ "af", "am", - "ar-dz", - "ar-iq", - "ar-kw", - "ar-ly", - "ar-ma", - "ar-sa", - "ar-tn", + "ar-DZ", + "ar-IQ", + "ar-KW", + "ar-LY", + "ar-MA", + "ar-SA", + "ar-TN", "az", "be", "bg", "bi", "bm", - "bn-bd", + "bn-BD", "bn", "bo", "br", @@ -33,27 +33,27 @@ const locales = [ "cs", "cv", "cy", - "da-at", - "da-ch", + "da-AT", + "da-CH", "da", "dv", "el", - "en-au", - "en-ca", - "en-gb", - "en-ie", - "en-il", - "en-in", - "en-nz", - "en-sg", - "en-tt", + "en-AU", + "en-CA", + "en-GB", + "en-IE", + "en-IL", + "en-IN", + "en-NZ", + "en-SG", + "en-TT", "eo", - "es-do", - "es-mx", - "es-pr", - "es-us", + "es-DO", + "es-MX", + "es-PR", + "es-US", "es", "et", "eu", @@ -61,15 +61,15 @@ const locales = [ "fa", "fi", "fo", - "fr-ca", - "fr-ch", + "fr-CA", + "fr-CH", "fr", "fy", "ga", "gd", "gl", - "gom-latn", + "gom-LATN", "gu", "he", "hi", @@ -77,10 +77,10 @@ const locales = [ "ht", "hu", - "hy-am", + "hy-AM", "id", "is", - "it-ch", + "it-CH", "it", "ja", "jv", @@ -104,19 +104,19 @@ const locales = [ "mn", "mr", - "ms-my", + "ms-MY", "ms", "mt", "my", "nb", "ne", - "nl-be", + "nl-BE", "nl", - "oc-lnc", - "pa-in", + "oc-LNC", + "pa-IN", "pl", - "pt-br", + "pt-BR", "pt", "rn", "ro", @@ -127,11 +127,11 @@ const locales = [ "sk", "sl", "sq", - "sr-cyrl", + "sr-CYRL", "sr", "ss", - "sv-fi", + "sv-FI", "sv", "sw", "ta", @@ -140,24 +140,24 @@ const locales = [ "tg", "th", "tk", - "tl-ph", + "tl-PH", "tlh", "tr", "tzl", - "tzm-latn", + "tzm-LATN", "tzm", - "ug-cn", + "ug-CN", "uk", "ur", - "uz-latn", + "uz-LATN", "uz", "vi", - "x-pseudo", + "x-PSEUDO", "yo", - "zh-cn", - "zh-hk", - "zh-tw", + "zh-CN", + "zh-HK", + "zh-TW", "zh", ]