Skip to content

Commit

Permalink
i18n: Add zh-TW Traditional Chinese locale (#689)
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterDaveHello authored Nov 23, 2024
1 parent 6ccdbe5 commit dcba3c4
Show file tree
Hide file tree
Showing 2 changed files with 208 additions and 1 deletion.
206 changes: 206 additions & 0 deletions apps/web/lib/i18n/locales/zhtw/translation.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
{
"common": {
"url": "網址",
"name": "名稱",
"email": "電子郵件",
"password": "密碼",
"action": "操作",
"actions": "操作",
"created_at": "建立於",
"key": "金鑰",
"role": "角色",
"roles": {
"user": "使用者",
"admin": "管理員"
},
"something_went_wrong": "發生錯誤",
"experimental": "實驗性功能",
"search": "搜尋",
"tags": "標籤",
"note": "筆記",
"attachments": "附件",
"screenshot": "螢幕截圖",
"video": "影片",
"archive": "封存",
"home": "首頁"
},
"layouts": {
"masonry": "瀑布式",
"grid": "網格",
"list": "清單",
"compact": "緊湊"
},
"actions": {
"change_layout": "變更版面配置",
"archive": "封存",
"unarchive": "取消封存",
"favorite": "加入最愛",
"unfavorite": "移除最愛",
"delete": "刪除",
"refresh": "重新整理",
"download_full_page_archive": "下載完整網頁封存",
"edit_tags": "編輯標籤",
"add_to_list": "新增至清單",
"select_all": "全選",
"unselect_all": "取消全選",
"copy_link": "複製連結",
"close_bulk_edit": "關閉批次編輯",
"bulk_edit": "批次編輯",
"manage_lists": "管理清單",
"remove_from_list": "從清單移除",
"save": "儲存",
"add": "新增",
"edit": "編輯",
"create": "建立",
"fetch_now": "立即擷取",
"summarize_with_ai": "使用 AI 摘要",
"edit_title": "編輯標題",
"sign_out": "登出",
"close": "關閉",
"merge": "合併",
"cancel": "取消",
"apply_all": "全部套用",
"ignore": "忽略"
},
"settings": {
"back_to_app": "返回應用程式",
"user_settings": "使用者設定",
"info": {
"user_info": "使用者資訊",
"basic_details": "基本資料",
"change_password": "變更密碼",
"current_password": "目前密碼",
"new_password": "新密碼",
"confirm_new_password": "確認新密碼",
"options": "選項",
"interface_lang": "介面語言"
},
"ai": {
"ai_settings": "AI 設定",
"tagging_rules": "標籤規則",
"tagging_rule_description": "您在此處新增的提示詞將作為規則提供給模型用於產生標籤。您可以在提示詞預覽區塊檢視最終提示詞。",
"prompt_preview": "提示詞預覽",
"text_prompt": "文字提示詞",
"images_prompt": "圖片提示詞"
},
"feeds": {
"rss_subscriptions": "RSS 訂閱",
"add_a_subscription": "新增訂閱"
},
"import": {
"import_export": "匯入/匯出",
"import_export_bookmarks": "匯入/匯出書籤",
"import_bookmarks_from_html_file": "從 HTML 檔案匯入書籤",
"import_bookmarks_from_pocket_export": "從 Pocket 匯出檔案匯入書籤",
"import_bookmarks_from_omnivore_export": "從 Omnivore 匯出檔案匯入書籤",
"import_bookmarks_from_hoarder_export": "從 Hoarder 匯出檔案匯入書籤",
"export_links_and_notes": "匯出連結和筆記",
"imported_bookmarks": "已匯入的書籤"
},
"api_keys": {
"api_keys": "API 金鑰",
"new_api_key": "新增 API 金鑰",
"new_api_key_desc": "為您的 API 金鑰指定一個獨一無二的名稱",
"key_success": "金鑰建立成功",
"key_success_please_copy": "請複製金鑰並儲存至安全的位置。關閉對話框後,您將無法再次存取此金鑰。"
}
},
"admin": {
"admin_settings": "管理員設定",
"server_stats": {
"server_stats": "伺服器統計資訊",
"total_users": "使用者總數",
"total_bookmarks": "書籤總數",
"server_version": "伺服器版本"
},
"background_jobs": {
"background_jobs": "背景作業",
"crawler_jobs": "網頁爬蟲作業",
"indexing_jobs": "索引作業",
"inference_jobs": "推論作業",
"tidy_assets_jobs": "資源整理作業",
"job": "作業",
"queued": "已排入佇列",
"pending": "等待中",
"failed": "失敗"
},
"actions": {
"recrawl_failed_links_only": "僅重新爬取失敗的連結",
"recrawl_all_links": "重新爬取所有連結",
"without_inference": "不進行推論",
"regenerate_ai_tags_for_failed_bookmarks_only": "僅重新產生失敗書籤的 AI 標籤",
"regenerate_ai_tags_for_all_bookmarks": "重新產生所有書籤的 AI 標籤",
"reindex_all_bookmarks": "重新索引所有書籤",
"compact_assets": "壓縮資源"
},
"users_list": {
"users_list": "使用者清單",
"create_user": "建立使用者",
"change_role": "變更角色",
"reset_password": "重設密碼",
"delete_user": "刪除使用者",
"num_bookmarks": "書籤數量",
"asset_sizes": "資源大小",
"local_user": "本機使用者",
"confirm_password": "確認密碼"
}
},
"options": {
"dark_mode": "深色模式",
"light_mode": "淺色模式"
},
"lists": {
"all_lists": "所有清單",
"favourites": "最愛",
"new_list": "新增清單",
"new_nested_list": "新增巢狀清單"
},
"tags": {
"all_tags": "所有標籤",
"your_tags": "您的標籤",
"your_tags_info": "您至少附加過一次的標籤",
"ai_tags": "AI 標籤",
"ai_tags_info": "僅由 AI 自動附加的標籤",
"unused_tags": "未使用的標籤",
"unused_tags_info": "未附加至任何書籤的標籤",
"delete_all_unused_tags": "刪除所有未使用的標籤",
"drag_and_drop_merging": "拖曳合併",
"drag_and_drop_merging_info": "將標籤拖曳至彼此上方即可合併",
"sort_by_name": "依名稱排序"
},
"preview": {
"view_original": "檢視原始網頁",
"cached_content": "快取內容"
},
"editor": {
"quickly_focus": "您可以按下 ⌘ + E 快速聚焦此欄位",
"multiple_urls_dialog_title": "要將多個網址匯入為個別的書籤嗎?",
"multiple_urls_dialog_desc": "輸入內容包含分別位於不同行數的多個網址。您是否要將它們匯入為個別的書籤?",
"import_as_text": "匯入為文字書籤",
"import_as_separate_bookmarks": "匯入為個別書籤",
"placeholder": "貼上連結、圖片、撰寫筆記,或將圖片拖曳至此處…",
"new_item": "新增項目",
"disabled_submissions": "提交功能已停用"
},
"toasts": {
"bookmarks": {
"updated": "書籤已更新!",
"deleted": "書籤已刪除!",
"refetch": "已將重新擷取加入佇列!",
"full_page_archive": "已觸發完整網頁封存建立",
"delete_from_list": "已從清單中刪除書籤",
"clipboard_copied": "連結已複製到剪貼簿!"
},
"lists": {
"created": "清單已建立!",
"updated": "清單已更新!"
}
},
"cleanups": {
"cleanups": "清理",
"duplicate_tags": {
"title": "重複的標籤",
"merge_all_suggestions": "要合併所有建議嗎?"
}
}
}
3 changes: 2 additions & 1 deletion packages/shared/langs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ export const langNameMappings: Record<string, string> = {
en: "English",
de: "German",
fr: "French",
zh: "Chinese",
zh: "Simplified Chinese",
zhtw: "Traditional Chinese",
};

export const supportedLangs = Object.keys(langNameMappings);

0 comments on commit dcba3c4

Please sign in to comment.