Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Traditional Chinese language #440

Merged
merged 1 commit into from
Feb 22, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions src/assets/locale/zh-TW/chrome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"heading": "設置 Chrome AI",
"status": {
"label": "在頁面輔助功能中啟用或停用 Chrome AI 支援"
},
"error": {
"browser_not_supported": "此版本的 Chrome 不支援 Gemini Nano 模型,請更新至版本127或更高",
"ai_not_supported": "設定 chrome://flags/#prompt-api-for-gemini-nano 未啟用,請先啟用它。",
"ai_not_ready": "Gemini Nano 尚未準備好,您需要再次檢查 Chrome 設定。",
"internal_error": "發生內部錯誤,請稍後重試。"
},
"errorDescription": "為了使用 Chrome AI,您需要版本127以上的瀏覽器,目前版本在 Dev 和 Canary 頻道中。下載支援的版本後,請按照以下步驟操作:\n\n1. 前往 `chrome://flags/#prompt-api-for-gemini-nano` 並選擇「啟用」\n2. 前往 `chrome://flags/#optimization-guide-on-device-model` 並選擇「EnabledBypassPrefRequirement」\n3. 前往 `chrome://components` 搜尋「Optimization Guide On Device Model」,然後點擊「檢查更新」。這將下載模型。如果您沒有看到這些設置,請重複步驟1和2,然後重新啟動瀏覽器。"
}
160 changes: 160 additions & 0 deletions src/assets/locale/zh-TW/common.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,160 @@
{
"pageAssist": "Page Assist",
"selectAModel": "選擇一個模型",
"save": "儲存",
"saved": "已儲存",
"cancel": "取消",
"retry": "重試",
"share": {
"tooltip": {
"share": "分享"
},
"modal": {
"title": "為聊天建立分享連結"
},
"form": {
"defaultValue": {
"name": "匿名",
"title": "未命名聊天"
},
"title": {
"label": "聊天標題",
"placeholder": "輸入聊天標題",
"required": "聊天標題是必填的"
},
"name": {
"label": "您的名字",
"placeholder": "輸入您的名字",
"required": "您的名字是必填的"
},
"btn": {
"save": "生成連結",
"saving": "正在產生連結..."
}
},
"notification": {
"successGenerate": "連結已複製到剪貼簿",
"failGenerate": "產生連結失敗"
}
},
"copyToClipboard": "複製到剪貼簿",
"webSearch": "搜尋網絡",
"regenerate": "重新生成",
"edit": "編輯",
"delete": "刪除",
"saveAndSubmit": "儲存並送出",
"editMessage": {
"placeholder": "輸入一則訊息..."
},
"submit": "送出",
"noData": "沒有資料",
"noHistory": "無聊天記錄",
"chatWithCurrentPage": "與目前頁面聊天",
"beta": "Beta",
"tts": "朗讀",
"currentChatModelSettings": "目前聊天模型設定",
"modelSettings": {
"label": "模型設定",
"description": "全域設定所有聊天的模型選項",
"form": {
"keepAlive": {
"label": "保留時間",
"help": "控制請求後模型在記憶體中保持的時間(預設:5分鐘)",
"placeholder": "例如:5m、10m、1h"
},
"temperature": {
"label": "溫度",
"placeholder": "例如:0.7、1.0"
},
"numCtx": {
"label": "上下文窗口大小 (num_ctx)",
"placeholder": "預設:2048"
},
"numPredict": {
"label": "最大 Token 數 (num_predict)",
"placeholder": "例如:2048、4096"
},
"seed": {
"label": "隨機種子",
"placeholder": "例如:1234",
"help": "模型輸出的可重複性"
},
"topK": {
"label": "Top K",
"placeholder": "例如:40、100"
},
"topP": {
"label": "Top P",
"placeholder": "例如:0.9、0.95"
},
"useMMap": {
"label": "useMmap"
},
"tfsZ": {
"label": "TFS-Z",
"placeholder": "例如:1.0、1.1"
},
"numKeep": {
"label": "Num Keep",
"placeholder": "例如:256、512"
},
"numThread": {
"label": "Num Thread",
"placeholder": "例如:8、16"
},
"useMlock": {
"label": "useMlock"
},
"minP": {
"label": "Min P",
"placeholder": "例如:0.05"
},
"repeatPenalty": {
"label": "Repeat Penalty",
"placeholder": "例如:1.1、1.2"
},
"repeatLastN": {
"label": "Repeat Last N",
"placeholder": "例如:64、128"
},
"numGpu": {
"label": "Num GPU",
"placeholder": "輸入要傳送到 GPU 的層數"
},
"systemPrompt": {
"label": "臨時系統提示詞",
"placeholder": "輸入系統提示詞",
"help": "這是一種在當前聊天中設置系統提示詞的快捷方法,如果已存在選定的系統提示詞將會覆蓋它。"
}
},
"advanced": "更多模型設定"
},
"copilot": {
"summary": "總結",
"explain": "解釋",
"rephrase": "重述",
"translate": "翻譯",
"custom": "自訂"
},
"citations": "引用",
"segmented": {
"ollama": "Ollama 模型",
"custom": "自訂模型"
},
"downloadCode": "下載程式碼",
"date": {
"pinned": "已置頂",
"today": "今天",
"yesterday": "昨天",
"last7Days": "最近7天",
"older": "更早以前"
},
"pin": "置頂",
"unpin": "取消置頂",
"generationInfo": "生成資訊",
"sidebarChat": "側邊欄聊天",
"reasoning": {
"thinking": "思考中....",
"thought": "思考了 {{time}}"
}
}
40 changes: 40 additions & 0 deletions src/assets/locale/zh-TW/knowledge.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
{
"addBtn": "新增知識",
"columns": {
"title": "標題",
"status": "狀態",
"embeddings": "嵌入模型",
"createdAt": "創建於",
"action": "操作"
},
"expandedColumns": {
"name": "名稱"
},
"confirm": {
"delete": "您確定要刪除此知識嗎?"
},
"deleteSuccess": "知識刪除成功",
"status": {
"pending": "待處理",
"finished": "已完成",
"processing": "處理中",
"failed": "失敗"
},
"addKnowledge": "新增知識",
"form": {
"title": {
"label": "知識標題",
"placeholder": "輸入知識標題",
"required": "輸入知識標題是必需的"
},
"uploadFile": {
"label": "上傳文件",
"uploadText": "將文件拖放到此處或點擊上傳",
"uploadHint": "支援的檔案類型: .pdf, .csv, .txt, .md, .docx",
"required": "文件是必需的"
},
"submit": "新增",
"success": "知識新增成功"
},
"noEmbeddingModel": "請先從 RAG 設定頁面新增一個嵌入模型"
}
90 changes: 90 additions & 0 deletions src/assets/locale/zh-TW/openai.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
{
"settings": "OpenAI 相容 API",
"heading": "OpenAI 相容 API",
"subheading": "在此管理和配置您與 OpenAI 相容的 API 提供商。",
"addBtn": "新增提供商",
"table": {
"name": "提供商名稱",
"baseUrl": "Base URL",
"actions": "操作"
},
"modal": {
"titleAdd": "新增提供商",
"name": {
"label": "提供商名稱",
"required": "提供商名稱為必填項。",
"placeholder": "輸入提供商名稱"
},
"baseUrl": {
"label": "Base URL",
"help": "OpenAI API 提供商的 Base URL。例如:http://localhost:1234/v1",
"required": "Base URL 為必填項。",
"placeholder": "輸入 Base URL"
},
"apiKey": {
"label": "API 金鑰",
"required": "API 金鑰為必填項。",
"placeholder": "輸入 API 金鑰"
},
"submit": "新增",
"update": "更新",
"deleteConfirm": "您確定要刪除此提供商嗎?",
"model": {
"title": "模型列表",
"subheading": "請選擇您想要從此提供商使用的聊天模型。",
"success": "成功新增模型。"
},
"tipLMStudio": "Page Assist 將自動取得您在 LM Studio 中載入的模型,您無需手動新增它們。"
},
"addSuccess": "提供商新增成功。",
"deleteSuccess": "提供商刪除成功。",
"updateSuccess": "提供商更新成功。",
"delete": "刪除",
"edit": "編輯",
"newModel": "從提供商新增模型",
"noNewModel": "對於 LMStudio、Ollama、Llamafile,模型採動態取得,無需手動新增。",
"searchModel": "搜尋模型",
"selectAll": "全選",
"save": "儲存",
"saving": "儲存中...",
"manageModels": {
"columns": {
"name": "模型名稱",
"model_type": "模型類型",
"model_id": "模型 ID",
"provider": "提供商名稱",
"actions": "操作"
},
"tooltip": {
"delete": "刪除"
},
"confirm": {
"delete": "您確定要刪除此模型嗎?"
},
"modal": {
"title": "新增自訂模型",
"form": {
"name": {
"label": "模型 ID",
"placeholder": "llama3.2",
"required": "模型 ID 為必填項。"
},
"provider": {
"label": "提供商",
"placeholder": "選擇提供商",
"required": "提供商為必填項。"
},
"type": {
"label": "模型類型"
}
}
}
},
"noModelFound": "未找到模型,請確保您已新增正確的供應商資料,包括 Base URL 和 API 金鑰。",
"radio": {
"chat": "聊天模型",
"embedding": "嵌入模型",
"chatInfo": "用於聊天補全和對話生成",
"embeddingInfo": "用於 RAG 和其他語義搜尋相關任務。"
}
}
29 changes: 29 additions & 0 deletions src/assets/locale/zh-TW/option.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"newChat": "新聊天",
"selectAPrompt": "選擇一個提示詞",
"githubRepository": "GitHub Repo",
"settings": "設定",
"sidebarTitle": "聊天紀錄",
"error": "錯誤",
"somethingWentWrong": "出現了錯誤",
"validationSelectModel": "請選擇模型以繼續",
"deleteHistoryConfirmation": "您確定要刪除這個歷史記錄嗎?",
"editHistoryTitle": "輸入一個新的標題",
"temporaryChat": "臨時聊天",
"more": {
"copy": {
"group": "複製",
"asText": "複製為文字",
"asMarkdown": "複製為Markdown",
"success": "已複製到剪貼簿!"
},
"download": {
"group": "下載",
"text": "文字檔 (.txt)",
"markdown": "Markdown 文件 (.md)",
"json": "JSON 文件 (.json)",
"image": "圖片 (.png)"
},
"share": "分享"
}
}
32 changes: 32 additions & 0 deletions src/assets/locale/zh-TW/playground.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"ollamaState": {
"searching": "正在搜尋您的 Ollama 🦙",
"running": "Ollama 正在運行 🦙",
"notRunning": "無法連接到 Ollama 🦙",
"connectionError": "看起來您遇到了連線錯誤,請參閱此<anchor>文件</anchor>進行故障排除。"
},
"formError": {
"noModel": "請選擇一個模型",
"noEmbeddingModel": "請在設定 > RAG 頁面設定一個嵌入模型"
},
"form": {
"textarea": {
"placeholder": "輸入一則訊息..."
},
"webSearch": {
"on": "",
"off": ""
}
},
"tooltip": {
"searchInternet": "搜尋網路",
"speechToText": "語音轉文字",
"uploadImage": "上傳圖片",
"stopStreaming": "停止串流",
"knowledge": "知識",
"vision": "[實驗]視覺聊天"
},
"sendWhenEnter": "按 Enter 送出",
"welcome": "你好!今天我能幫你什麼?",
"useOCR": "從圖片中擷取文字(OCR)"
}
Loading