first
This commit is contained in:
22
frontend/src/i18n/index.ts
Normal file
22
frontend/src/i18n/index.ts
Normal file
@@ -0,0 +1,22 @@
|
||||
import i18n from 'i18next'
|
||||
import { initReactI18next } from 'react-i18next'
|
||||
import zhTW from './locales/zh-TW.json'
|
||||
|
||||
/**
|
||||
* i18n Configuration
|
||||
* Default language: Traditional Chinese (zh-TW)
|
||||
*/
|
||||
i18n.use(initReactI18next).init({
|
||||
resources: {
|
||||
'zh-TW': {
|
||||
translation: zhTW,
|
||||
},
|
||||
},
|
||||
lng: 'zh-TW',
|
||||
fallbackLng: 'zh-TW',
|
||||
interpolation: {
|
||||
escapeValue: false,
|
||||
},
|
||||
})
|
||||
|
||||
export default i18n
|
||||
153
frontend/src/i18n/locales/zh-TW.json
Normal file
153
frontend/src/i18n/locales/zh-TW.json
Normal file
@@ -0,0 +1,153 @@
|
||||
{
|
||||
"app": {
|
||||
"title": "OCR 批次處理系統",
|
||||
"subtitle": "智能文字識別與轉換平台"
|
||||
},
|
||||
"nav": {
|
||||
"upload": "上傳檔案",
|
||||
"processing": "處理中",
|
||||
"results": "結果檢視",
|
||||
"export": "匯出",
|
||||
"settings": "設定",
|
||||
"logout": "登出"
|
||||
},
|
||||
"auth": {
|
||||
"login": "登入",
|
||||
"username": "使用者名稱",
|
||||
"password": "密碼",
|
||||
"loginButton": "登入",
|
||||
"loginError": "登入失敗,請檢查帳號密碼",
|
||||
"welcomeBack": "歡迎回來"
|
||||
},
|
||||
"upload": {
|
||||
"title": "上傳檔案",
|
||||
"dragAndDrop": "拖曳檔案至此,或點擊選擇檔案",
|
||||
"dropFilesHere": "放開以上傳檔案",
|
||||
"invalidFiles": "部分檔案格式不支援",
|
||||
"supportedFormats": "支援格式:PNG, JPG, JPEG, PDF, DOC, DOCX, PPT, PPTX",
|
||||
"maxFileSize": "單檔最大 50MB",
|
||||
"uploadButton": "開始上傳",
|
||||
"uploading": "上傳中...",
|
||||
"uploadSuccess": "上傳成功",
|
||||
"uploadError": "上傳失敗",
|
||||
"fileCount": "已選擇 {{count}} 個檔案",
|
||||
"clearAll": "清除全部",
|
||||
"removeFile": "移除",
|
||||
"selectedFiles": "已選擇的檔案"
|
||||
},
|
||||
"processing": {
|
||||
"title": "OCR 處理中",
|
||||
"status": "狀態",
|
||||
"progress": "進度",
|
||||
"currentFile": "目前處理",
|
||||
"filesProcessed": "已處理 {{processed}} / {{total}} 個檔案",
|
||||
"startProcessing": "開始處理",
|
||||
"processing": "處理中...",
|
||||
"completed": "處理完成",
|
||||
"failed": "處理失敗",
|
||||
"pending": "等待中",
|
||||
"estimatedTime": "預計剩餘時間",
|
||||
"settings": {
|
||||
"title": "處理設定",
|
||||
"language": "識別語言",
|
||||
"threshold": "信心度閾值",
|
||||
"layoutDetection": "版面偵測"
|
||||
}
|
||||
},
|
||||
"results": {
|
||||
"title": "OCR 結果",
|
||||
"filename": "檔案名稱",
|
||||
"status": "狀態",
|
||||
"confidence": "信心度",
|
||||
"processingTime": "處理時間",
|
||||
"actions": "操作",
|
||||
"viewMarkdown": "檢視 Markdown",
|
||||
"viewJSON": "檢視 JSON",
|
||||
"downloadPDF": "下載 PDF",
|
||||
"preview": "預覽",
|
||||
"noResults": "尚無處理結果",
|
||||
"textBlocks": "文字區塊",
|
||||
"layoutInfo": "版面資訊"
|
||||
},
|
||||
"export": {
|
||||
"title": "匯出結果",
|
||||
"format": "匯出格式",
|
||||
"formats": {
|
||||
"txt": "純文字 (.txt)",
|
||||
"json": "JSON (.json)",
|
||||
"excel": "Excel (.xlsx)",
|
||||
"markdown": "Markdown (.md)",
|
||||
"pdf": "PDF (.pdf)"
|
||||
},
|
||||
"options": {
|
||||
"title": "匯出選項",
|
||||
"confidenceThreshold": "信心度閾值",
|
||||
"includeMetadata": "包含元資料",
|
||||
"filenamePattern": "檔案名稱模式",
|
||||
"cssTemplate": "CSS 樣板"
|
||||
},
|
||||
"rules": {
|
||||
"title": "匯出規則",
|
||||
"selectRule": "選擇規則",
|
||||
"saveRule": "儲存規則",
|
||||
"newRule": "新增規則",
|
||||
"ruleName": "規則名稱",
|
||||
"deleteRule": "刪除規則"
|
||||
},
|
||||
"cssTemplates": {
|
||||
"default": "預設",
|
||||
"academic": "學術",
|
||||
"business": "商務",
|
||||
"report": "報告"
|
||||
},
|
||||
"exportButton": "匯出",
|
||||
"exporting": "匯出中...",
|
||||
"exportSuccess": "匯出成功",
|
||||
"exportError": "匯出失敗"
|
||||
},
|
||||
"settings": {
|
||||
"title": "設定",
|
||||
"exportRules": "匯出規則管理",
|
||||
"language": "語言",
|
||||
"theme": "主題",
|
||||
"about": "關於"
|
||||
},
|
||||
"common": {
|
||||
"confirm": "確認",
|
||||
"cancel": "取消",
|
||||
"save": "儲存",
|
||||
"delete": "刪除",
|
||||
"edit": "編輯",
|
||||
"close": "關閉",
|
||||
"loading": "載入中...",
|
||||
"error": "錯誤",
|
||||
"success": "成功",
|
||||
"warning": "警告",
|
||||
"info": "資訊",
|
||||
"search": "搜尋",
|
||||
"filter": "篩選",
|
||||
"sort": "排序",
|
||||
"refresh": "重新整理",
|
||||
"back": "返回",
|
||||
"next": "下一步",
|
||||
"previous": "上一步",
|
||||
"submit": "提交"
|
||||
},
|
||||
"errors": {
|
||||
"networkError": "網路錯誤,請稍後再試",
|
||||
"unauthorized": "未授權,請重新登入",
|
||||
"notFound": "找不到資源",
|
||||
"serverError": "伺服器錯誤",
|
||||
"validationError": "驗證錯誤",
|
||||
"fileTooBig": "檔案過大",
|
||||
"unsupportedFormat": "不支援的格式",
|
||||
"uploadFailed": "上傳失敗",
|
||||
"processingFailed": "處理失敗",
|
||||
"exportFailed": "匯出失敗"
|
||||
},
|
||||
"translation": {
|
||||
"title": "翻譯功能",
|
||||
"comingSoon": "即將推出",
|
||||
"description": "文件翻譯功能正在開發中,敬請期待"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user