Skip to content

Commit

Permalink
Add zh-HK and fix zh-CN in static locales (#460)
Browse files Browse the repository at this point in the history
  • Loading branch information
xinbenlv authored Dec 30, 2024
1 parent 8b7b3fd commit c68120b
Show file tree
Hide file tree
Showing 6 changed files with 317 additions and 1 deletion.
157 changes: 157 additions & 0 deletions desktop/src-tauri/locales/zh-HK/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,157 @@
{
"aborting": "正在中止操作",
"advanced": "進階設定",
"app-title": "Vibe",
"ask-for-download-model": "您想從網站下載模型嗎?",
"ask-for-install-ytdlp-message": "您想安裝用於從熱門網站下載音頻的 ytdlp 嗎?",
"ask-for-install-ytdlp-title": "安裝 ytdlp",
"ask-for-relaunch-body": "您想立即重啟應用程式嗎?",
"ask-for-relaunch-title": "更新完成",
"ask-for-update-body": "您想將 Vibe 更新至 {{version}} 版本嗎?",
"ask-for-update-title": "確認更新",
"cancel": "取消",
"cancel-relaunch": "稍後重啟",
"cancel-update": "稍後更新",
"change-file": "更改檔案",
"change-files": "更改檔案",
"change-models-folder": "更改模型資料夾",
"characters": "字元數",
"check-error": "檢查失敗",
"check-loading": "檢查中",
"check-success": "測試成功",
"confirm-exit": "你想退出嗎?\n未儲存的更改將會遺失。",
"confirm-relaunch": "立即重啟",
"confirm-update": "立即更新",
"copied": "已複製!",
"copy": "複製",
"copy-logs": "複製日誌",
"custom-ffmpeg-command": "自訂指令",
"customize": "自訂",
"customize-info": "下載任何支援的 ggml 或 gguf 格式的模型檔案(副檔名以'.bin'結尾),將其放入模型目錄,然後從下拉清單中選擇即可,無需重啟應用程式🌟",
"dark": "深色",
"diarize-threshold": "發言者識別閾值",
"discord-community": "Discord 社群",
"download-file": "下載並轉錄",
"download-model": "下載模型",
"download-models-link": "下載模型",
"downloading": "正在下載... {{progress}}%",
"downloading-ai-models": "正在下載 AI 模型...",
"downloading-model": "正在下載 OpenAI 模型...",
"downloading-ytdlp": "下載 ytdlp",
"enable-logs": "啟用日誌",
"error": "錯誤",
"error-title": "錯誤",
"ffmpeg-options": "FFMPEG 選項",
"files": "檔案",
"find-here": "在這裡找到",
"focus-window-on-finish": "轉錄完成時切換至此應用程式視窗",
"format": "格式",
"formats": "格式",
"general": "一般",
"gpu-device": "GPU 裝置編號",
"high-gpu-performance": "將圖形效能設定為高",
"i-prefer-manual-setup": "我更想手動下載模型",
"info-cancel-download": "您可以取消下載,稍後再手動下載模型。",
"info-diarize-threshold": "發言者識別閾值或視為未檢測到",
"info-enable-logs": "將日誌寫入檔案。啟用後請重新啟動。",
"info-gpu-device": "選擇用於轉錄的 GPU 裝置。輸入 GPU 裝置編號,從 0 開始。如果您有 2 個 GPU,請選擇 0 或 1。",
"info-high-gpu-performance": "增強 Vibe 的圖形效能,但會消耗更多系統資源。",
"info-llm-api-key": "來自 AI 模型網站的 API 金鑰",
"info-llm-prompt": "提示輸入 AI 模型。\n必須包含將被轉錄替換的模式 %s。",
"info-llm-summarize": "用AI總結。\n需要 API 金鑰。\n轉錄完成後,它將與選定的提示一起發送到 Claude API,然後幾秒鐘後,AI 的答案將顯示在 Vibe 中,而不是轉錄。\n轉錄多個檔案時也適用!",
"info-manual-download": "下載 AI 模型需要網絡連接",
"info-max-sentence-len": "一個句子中的最大字元數。僅當單詞時間戳開啟時才有效。",
"info-max-speakers": "檔案中應有的最大發言者人數。用於更精確的識別。",
"info-max-text-ctx": "使用過去文本作為解碼器提示的最大上下文標記數",
"info-max-tokens": "AI 模型的最大代幣數。\n每個標記通常被視為一個單詞。\n這可以讓您免於發送過多的數據而花費金錢。\n建議在網站中也對其進行限制。",
"info-normalize-loudness": "啟用此選項可提高轉錄準確性。\n每小時最多可能需要 8 分鐘的音頻。",
"info-prompt": "輸入一些可能出現的關鍵詞,以提高轉錄準確率。",
"info-recognize-speakers": "檢測每個句子中的發言者並添加標識",
"info-temperature": "較高的值會生成更多新穎的詞彙;較低的值會盡量使用常見詞彙。通常設為 0.4 左右可獲得比較平衡的結果。",
"info-threads": "增加 CPU 執行緒數可加快轉錄速度,但也會增加資源佔用。推薦值:4",
"info-translate-to-english": "通過啟用此選項,將任何語言的轉錄翻譯成英語",
"info-use-word-timestamps": "帶有單詞時間戳而不是句子時間戳的文字記錄。\n在 JSON 格式中很有用。\n當揚聲器識別開啟時禁用。",
"install-now": "立即安裝",
"invalid-llm-prompt": "提示無效。\n它必須包含以下模式 %s,該模式將被轉錄替換。",
"language": "語言",
"leftover": "剩餘",
"light": "淺色",
"llm-api-key": "Claude API 金鑰",
"llm-current-cost": "使用費用",
"llm-model": "模型",
"llm-platform": "平台",
"llm-prompt": "提示",
"logs-folder": "日誌資料夾",
"max-sentence-len": "最大句子長度",
"max-speakers": "最大發言者數量",
"max-text-ctx": "最大上下文",
"max-tokens": "最大代幣數",
"microphone": "麥克風",
"modal-close": "關閉",
"modal-error-body": "發生了一個錯誤!",
"mode-text": "文字",
"model-options": "模型選項",
"models-folder": "模型資料夾",
"more-options": "更多選項",
"no-connection": "無網絡連接",
"no-record": "無記錄",
"normalize-loudness": "響度標準化",
"ollama-base-url": "Ollama 基本網址",
"others": "其他",
"paste-model-link": "貼上模型連結",
"play-sound-on-finish": "完成時播放提示音",
"please-enable-word-timestamps": "請啟用單詞時間戳才能使用此選項!\n\n完成或重置模型選項後,還要確保禁用此選項!",
"popular": "熱門",
"preset-for-subtitles": "字幕製作",
"presets": "快速設定",
"print-tooltip": "列印",
"process-with-llm": "總結",
"project-link": "關於 Vibe",
"prompt": "提示詞",
"recognize-speakers": "識別發言者",
"record": "錄音",
"replace-all": "全部替換",
"report-issue": "報告問題",
"reset-app": "重置 Vibe",
"reset-ask-dialog": "確定要重置 Vibe 嗎?這會清除應用程式的所有數據和模型檔案。",
"reset-options": "恢復預設選項",
"right-alignment": "右對齊",
"run-llm-check": "運行檢查",
"save-record-in-documents-folder": "將音頻檔案儲存在文件資料夾中",
"save-success": "儲存成功!",
"save-transcript": "儲存字幕",
"segments-tab": "成績單",
"select-file": "選擇檔案",
"select-language": "選擇語言",
"select-model": "選擇模型",
"select-theme": "選擇主題",
"set-monthly-spend-limit": "設定每月支出限額",
"settings": "設定",
"speaker-prefix": "發言者",
"speaker-recognition": "說話人識別",
"speakers": "發言者",
"start-record": "錄音和轉錄",
"stop-and-transcribe": "停止錄音並轉錄",
"success-action": "操作成功。",
"summarize-loading": "總結中",
"summarize-success": "總結完成",
"summary-tab": "概括",
"support-the-project": "支持項目",
"temp-folder": "臨時檔案",
"temperature": "溫度",
"theme": "主題",
"this-happens-once": "這只需進行一次!🎉",
"threads": "執行緒數",
"transcribe": "開始轉錄",
"transcribe-took": "在 {{total}} 秒內成功轉錄。",
"transcribed": "已轉錄",
"transcribing": "正在轉錄...",
"transcript-will-displayed-shortly": "轉錄結果馬上就會顯示在這裡...",
"translate-to-english": "翻譯成英語",
"try-again": "重試",
"update-version": "更新 Vibe",
"updating-modal-body": "正在將 Vibe 更新至 {{version}} 版本",
"updating-modal-title": "正在更新...",
"use-word-timestamps": "使用單詞級時間戳",
"when-completing-transcription": "完成轉錄時"
}
102 changes: 102 additions & 0 deletions desktop/src-tauri/locales/zh-HK/language.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
{
"afrikaans": "南非荷蘭語",
"albanian": "阿爾巴尼亞語",
"amharic": "阿姆哈拉語",
"arabic": "阿拉伯語",
"armenian": "亞美尼亞語",
"assamese": "阿薩姆語",
"auto": "自動檢測 ✨",
"azerbaijani": "阿塞拜疆語",
"bashkir": "巴什基爾語",
"basque": "巴斯克語",
"belarusian": "白俄羅斯語",
"bengali": "孟加拉語",
"bosnian": "波斯尼亞語",
"breton": "布列塔尼語",
"bulgarian": "保加利亞語",
"catalan": "加泰羅尼亞語",
"chinese": "中文",
"croatian": "克羅地亞語",
"czech": "捷克語",
"danish": "丹麥語",
"dutch": "荷蘭語",
"english": "英語",
"estonian": "愛沙尼亞語",
"faroese": "法羅語",
"finnish": "芬蘭語",
"french": "法語",
"galician": "加利西亞語",
"georgian": "格魯吉亞語",
"german": "德語",
"greek": "希臘語",
"gujarati": "古吉拉特語",
"haitiancreole": "海地克里奧爾語",
"hausa": "豪薩語",
"hawaiian": "夏威夷語",
"hebrew": "希伯來語",
"hindi": "印地語",
"hungarian": "匈牙利語",
"icelandic": "冰島語",
"indonesian": "印度尼西亞語",
"italian": "意大利語",
"japanese": "日語",
"javanese": "爪哇語",
"kannada": "卡納達語",
"kazakh": "哈薩克語",
"khmer": "高棉語",
"korean": "韓語",
"lao": "老撾語",
"latin": "拉丁語",
"latvian": "拉脫維亞語",
"lingala": "林加拉語",
"lithuanian": "立陶宛語",
"luxembourgish": "盧森堡語",
"macedonian": "馬其頓語",
"malagasy": "馬達加斯加語",
"malay": "馬來語",
"malayalam": "馬拉雅拉姆語",
"maltese": "馬耳他語",
"maori": "毛利語",
"marathi": "馬拉地語",
"mongolian": "蒙古語",
"myanmar": "緬甸語",
"nepali": "尼泊爾語",
"norwegian": "挪威語",
"nynorsk": "新挪威語",
"occitan": "奧克語",
"pashto": "普什圖語",
"persian": "波斯語",
"polish": "波蘭語",
"portuguese": "葡萄牙語",
"punjabi": "旁遮普語",
"romanian": "羅馬尼亞語",
"russian": "俄語",
"sanskrit": "梵語",
"serbian": "塞爾維亞語",
"shona": "紹納語",
"sindhi": "信德語",
"sinhala": "僧伽羅語",
"slovak": "斯洛伐克語",
"slovenian": "斯洛文尼亞語",
"somali": "索馬里語",
"spanish": "西班牙語",
"sundanese": "巽他語",
"swahili": "斯瓦希里語",
"swedish": "瑞典語",
"tagalog": "他加祿語",
"tajik": "塔吉克語",
"tamil": "泰米爾語",
"tatar": "韃靼語",
"telugu": "泰盧固語",
"thai": "泰語",
"tibetan": "藏語",
"turkish": "土耳其語",
"turkmen": "土庫曼語",
"ukrainian": "烏克蘭語",
"urdu": "烏爾都語",
"uzbek": "烏茲別克語",
"vietnamese": "越南語",
"welsh": "威爾士語",
"yiddish": "意第緒語",
"yoruba": "約魯巴語"
}
1 change: 1 addition & 0 deletions desktop/src/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export const supportedLanguages: { [key: string]: string } = {
'pt-BR': 'portuguese',
'sv-SE': 'swedish',
'zh-CN': 'chinese',
'zh-HK': 'chinese (HK)',
'fr-FR': 'french',
'pl-PL': 'polish',
'it-IT': 'italian',
Expand Down
10 changes: 9 additions & 1 deletion landing/src/lib/i18n.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,15 @@ i18next
},
fallbackLng: 'en-US',
// lng: 'en', // testing in dev mode
supportedLngs: ['en-US', 'he-IL', 'fr-FR', 'pl-PL', 'pt-BR'],
supportedLngs: [
'en-US',
'he-IL',
'fr-FR',
'pl-PL',
'pt-BR',
'zh-CN',
'zh-HK',
],
ns: 'translation',
backend: {
loadPath: 'locales/{{lng}}.json',
Expand Down
24 changes: 24 additions & 0 deletions landing/static/locales/zh-CN.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"apple-silicon": "Apple 芯片",
"available-for": "支持平台",
"cancel": "取消",
"copy-download-link": "复制下载链接",
"description": "体验 Vibe 的无缝语言转录功能 - 您轻松转录音频和视频的完整解决方案。",
"documentation": "使用文档",
"download": "下载",
"download-for": "下载",
"download-on-pc": "在电脑上下载",
"download-starting-description": "下载即将开始。\n您可以在\"下载\"文件夹中找到安装程序。",
"features": "功能特性",
"home": "首页",
"install-on-linux": "在 Linux 上安装 Vibe",
"intel": "Intel 芯片",
"open-logs-folder": "打开日志文件夹",
"privacy-policy": "隐私政策",
"star-on-github": "在 Github 上点个星星",
"support-project": "支持 Vibe!",
"support-vibe": "支持 Vibe",
"support-while-you-wait": "等待时,不妨考虑支持 Vibe 项目,帮助我们成长!",
"title": "自主转录。",
"your-download-is-starting": "您的下载即将开始..."
}
24 changes: 24 additions & 0 deletions landing/static/locales/zh-HK.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"apple-silicon": "Apple 晶片",
"available-for": "支援平台",
"cancel": "取消",
"copy-download-link": "複製下載連結",
"description": "體驗 Vibe 的無縫語言轉錄功能 - 您輕鬆轉錄音頻和視頻的完整解決方案。",
"documentation": "使用說明",
"download": "下載",
"download-for": "下載至",
"download-on-pc": "在電腦上下載",
"download-starting-description": "下載即將開始。\n您可以在「下載」資料夾中找到安裝程式。",
"features": "功能特點",
"home": "首頁",
"install-on-linux": "在 Linux 上安裝 Vibe",
"intel": "Intel 晶片",
"open-logs-folder": "開啟日誌資料夾",
"privacy-policy": "私隱政策",
"star-on-github": "在 Github 上給個星星",
"support-project": "支持 Vibe!",
"support-vibe": "支持 Vibe",
"support-while-you-wait": "等待時,不妨考慮支持 Vibe 項目,幫助我們成長!",
"title": "自主轉錄。",
"your-download-is-starting": "您的下載即將開始..."
}

0 comments on commit c68120b

Please sign in to comment.