From ac40c90f06510a1aac3b583bd2412c11ec491605 Mon Sep 17 00:00:00 2001 From: Weng Tad Date: Sat, 30 Jan 2021 18:23:58 +0800 Subject: [PATCH] translation: add simplified & traditional chinese --- frontend/src/locales/zh-CN.json | 141 +++++++++++++++++++++++++ frontend/src/locales/zh-TW.json | 141 +++++++++++++++++++++++++ frontend/src/store/modules/language.js | 10 +- 3 files changed, 291 insertions(+), 1 deletion(-) create mode 100644 frontend/src/locales/zh-CN.json create mode 100644 frontend/src/locales/zh-TW.json diff --git a/frontend/src/locales/zh-CN.json b/frontend/src/locales/zh-CN.json new file mode 100644 index 000000000..4a6f7400a --- /dev/null +++ b/frontend/src/locales/zh-CN.json @@ -0,0 +1,141 @@ +{ + "404": { + "page-not-found": "404页面不存在", + "take-me-home": "返回主页" + }, + "new-recipe": { + "from-url": "输入网址", + "recipe-url": "食谱网址", + "error-message": "貌似在解析网址时出错。请检查log和debug/last_recipe.json文件并找寻更多有关资讯。", + "bulk-add": "批量添加", + "paste-in-your-recipe-data-each-line-will-be-treated-as-an-item-in-a-list": "请粘贴您的食谱资料。每行将被视为列表中的一项。" + }, + "general": { + "upload": "上传", + "submit": "提交", + "name": "名称", + "settings": "设定", + "close": "关闭", + "save": "保存", + "image-file": "图像文件", + "update": "更新", + "edit": "编辑", + "delete": "删除", + "select": "选择", + "random": "随机", + "new": "新建", + "create": "创建", + "cancel": "取消", + "ok": "好的", + "enabled": "启用", + "download": "下载", + "import": "导入", + "delete-data": "删除资料", + "options": "选项", + "templates": "模板", + "recipes": "食谱", + "themes": "布景主题" + }, + "login": { + "stay-logged-in": "保持登录状态?", + "email": "电子邮件", + "password": "密码", + "sign-in": "登入", + "sign-up": "注册" + }, + "meal-plan": { + "dinner-this-week": "本周晚餐", + "dinner-today": "今日晚餐", + "planner": "策划人", + "edit-meal-plan": "编辑用餐计划", + "meal-plans": "用餐计划", + "choose-a-recipe": "选择食谱", + "create-a-new-meal-plan": "创建一个新的用餐计划", + "start-date": "开始日期", + "end-date": "结束日期" + }, + "recipe": { + "description": "描述", + "ingredients": "材料", + "categories": "分类目录", + "tags": "标签", + "instructions": "做法", + "step-index": "步骤:{step}", + "recipe-name": "食谱名称", + "servings": "份量", + "ingredient": "材料", + "notes": "贴士", + "note": "贴士", + "original-recipe": "原食谱出处", + "view-recipe": "查看食谱" + }, + "search": { + "search-for-a-recipe": "搜索食谱", + "search-for-your-favorite-recipe": "搜索您的食谱收藏" + }, + "settings": { + "color": "颜色", + "swatches": "", + "add-a-new-theme": "新增布景主题", + "set-new-time": "设定新的时间", + "current": "版本号:", + "latest": "最新版本:", + "explore-the-docs": "浏览文档", + "contribute": "参与贡献", + "backup-and-exports": "备份", + "backup-info": "备份以标准JSON格式导出,并连同储存在系统文件中的所有图像。在备份文件夹中,您将找到一个.zip文件,其中包含数据库中的所有食谱JSON和图像。此外,如果您选择了Markdown文件,这些文件也将一并储存在.zip文件中。当需要要导入备份,它必须位于您的备份文件夹中。每天3:00 AM将进行自动备份。", + "backup-tag": "标签备份", + "markdown-template": "Markdown模板", + "backup-recipes": "食谱备份", + "theme": { + "theme-settings": "布景主题设置", + "select-a-theme-from-the-dropdown-or-create-a-new-theme-note-that-the-default-theme-will-be-served-to-all-users-who-have-not-set-a-theme-preference": "从以下列表中选择一个主题或创建一个新主题。请注意,默认主题将提供给尚未设置主题首选的所有用户。", + "dark-mode": "暗黑模式", + "theme-is-required": "必须选择主题", + "primary": "主要(Primary)", + "secondary": "次要(Secondary)", + "accent": "强调(Accent)", + "success": "成功(Success)", + "info": "信息(Info)", + "warning": "警告(Warning)", + "error": "错误(Error)", + "light": "浅色", + "dark": "深色", + "theme": "布景主题", + "saved-color-theme": "已保存主题色调", + "delete-theme": "删除主题", + "are-you-sure-you-want-to-delete-this-theme": "您确定要删除此主题吗?", + "save-colors-and-apply-theme": "保存色调并应用主题", + "choose-how-mealie-looks-to-you-set-your-theme-preference-to-follow-your-system-settings-or-choose-to-use-the-light-or-dark-theme": "选择Mealie的外观模式。设置布景主题首选并依据您的主机系统设置,或者选择使用浅色或深色主题。" + }, + "webhooks": { + "meal-planner-webhooks": "用餐计划器Webhooks", + "the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at": "下方列出的网址将在预定日期接收到有关用餐计划的食谱资料。Webhooks将在{ time }执行", + "test-webhooks": "测试Webhooks", + "webhook-url": "Webhook网址", + "save-webhooks": "保存Webhooks" + }, + "new-version-available": "检测到Mealie最新版本出现,浏览仓库", + "backup": { + "import-recipes": "导入食谱", + "import-themes": "导入主题", + "import-settings": "导入设置", + "create-heading": "创建备份", + "backup-tag": "标签备份" + } + }, + "migration": { + "recipe-migration": "食谱迁移", + "currently-chowdown-via-public-repo-url-is-the-only-supported-type-of-migration": "当前迁移类型只限于Chowdown公开仓库网址", + "chowdown-repo-url": "Chowdown仓库网址", + "migrate": "迁移", + "failed-recipes": "食谱失败", + "failed-images": "图片失败", + "you-can-import-recipes-from-either-a-zip-file-or-a-directory-located-in-the-app-data-migraiton-folder-please-review-the-documentation-to-ensure-your-directory-structure-matches-what-is-expected": "您可以从zip文件或者/app/data/migration/文件夹中的目录导入食谱。请查看文档以确保您的目录结构符合预期。", + "nextcloud-data": "Nextcloud数据", + "delete-confirmation": "您确定要删除此迁移数据吗?", + "successfully-imported-from-nextcloud": "从Nextcloud导入成功", + "failed-imports": "导入失败", + "upload-an-archive": "上传档案" + } +} diff --git a/frontend/src/locales/zh-TW.json b/frontend/src/locales/zh-TW.json new file mode 100644 index 000000000..db2a38c7b --- /dev/null +++ b/frontend/src/locales/zh-TW.json @@ -0,0 +1,141 @@ +{ + "404": { + "page-not-found": "404頁面不存在", + "take-me-home": "返回主頁" + }, + "new-recipe": { + "from-url": "輸入網址", + "recipe-url": "食譜網址", + "error-message": "貌似在解析網址時出錯。請檢查log和debug/last_recipe.json文件並找尋更多有關資訊。", + "bulk-add": "批量添加", + "paste-in-your-recipe-data-each-line-will-be-treated-as-an-item-in-a-list": "請粘貼您的食譜資料。每行將被視為列表中的一項。" + }, + "general": { + "upload": "上傳", + "submit": "提交", + "name": "名稱", + "settings": "設定", + "close": "關閉", + "save": "保存", + "image-file": "圖像文件", + "update": "更新", + "edit": "编辑", + "delete": "删除", + "select": "選擇", + "random": "隨機", + "new": "新建", + "create": "創建", + "cancel": "取消", + "ok": "好的", + "enabled": "启用", + "download": "下载", + "import": "導入", + "delete-data": "删除资料", + "options": "選項", + "templates": "模板", + "recipes": "食譜", + "themes": "佈景主題" + }, + "login": { + "stay-logged-in": "保持登錄狀態?", + "email": "電子郵件", + "password": "密碼", + "sign-in": "登入", + "sign-up": "註冊" + }, + "meal-plan": { + "dinner-this-week": "本週晚餐", + "dinner-today": "今日晚餐", + "planner": "策劃人", + "edit-meal-plan": "編輯用餐計劃", + "meal-plans": "用餐計劃", + "choose-a-recipe": "選擇食譜", + "create-a-new-meal-plan": "創建一個新的用餐計劃", + "start-date": "開始日期", + "end-date": "結束日期" + }, + "recipe": { + "description": "描述", + "ingredients": "材料", + "categories": "分類目錄", + "tags": "標籤", + "instructions": "做法", + "step-index": "步驟:{step}", + "recipe-name": "食譜名稱", + "servings": "份量", + "ingredient": "材料", + "notes": "貼士", + "note": "貼士", + "original-recipe": "原食譜出處", + "view-recipe": "查看食譜" + }, + "search": { + "search-for-a-recipe": "搜索食譜", + "search-for-your-favorite-recipe": "搜索您的食譜收藏" + }, + "settings": { + "color": "顏色", + "swatches": "", + "add-a-new-theme": "新增佈景主題", + "set-new-time": "設定新的時間", + "current": "版本號:", + "latest": "最新版本:", + "explore-the-docs": "瀏覽文檔", + "contribute": "參與貢獻", + "backup-and-exports": "備份", + "backup-info": "備份以標準JSON格式導出,並連同儲存在系統文件中的所有圖像。在備份文件夾中,您將找到一個.zip文件,其中包含數據庫中的所有食譜JSON和圖像。此外,如果您選擇了Markdown文件,這些文件也將一併儲存在.zip文件中。當需要要導入備份,它必須位於您的備份文件夾中。每天3:00 AM將進行自動備份。", + "backup-tag": "標籤備份", + "markdown-template": "Markdown模板", + "backup-recipes": "食譜備份", + "theme": { + "theme-settings": "佈景主題設置", + "select-a-theme-from-the-dropdown-or-create-a-new-theme-note-that-the-default-theme-will-be-served-to-all-users-who-have-not-set-a-theme-preference": "從以下列表中選擇一個主題或創建一個新主題。請注意,默認主題將提供給尚未設置主題首選的所有用戶。", + "dark-mode": "暗黑模式", + "theme-is-required": "必須選擇主題", + "primary": "主要(Primary)", + "secondary": "次要(Secondary)", + "accent": "強調(Accent)", + "success": "成功(Success)", + "info": "信息(Info)", + "warning": "警告(Warning)", + "error": "錯誤(Error)", + "light": "淺色", + "dark": "深色", + "theme": "佈景主題", + "saved-color-theme": "已保存主題色調", + "delete-theme": "刪除主題", + "are-you-sure-you-want-to-delete-this-theme": "您確定要刪除此主題嗎?", + "save-colors-and-apply-theme": "保存色調並應用主題", + "choose-how-mealie-looks-to-you-set-your-theme-preference-to-follow-your-system-settings-or-choose-to-use-the-light-or-dark-theme": "選擇Mealie的外觀模式。設置佈景主題首選並依據您的主機系統設置,或者選擇使用淺色或深色主題。" + }, + "webhooks": { + "meal-planner-webhooks": "用餐計劃器Webhooks", + "the-urls-listed-below-will-recieve-webhooks-containing-the-recipe-data-for-the-meal-plan-on-its-scheduled-day-currently-webhooks-will-execute-at": "下方列出的網址將在預定日期接收到有關用餐計劃的食譜資料。Webhooks將在{ time }執行", + "test-webhooks": "測試Webhooks", + "webhook-url": "Webhook網址", + "save-webhooks": "保存Webhooks" + }, + "new-version-available": "檢測到Mealie最新版本出現,瀏覽倉庫", + "backup": { + "import-recipes": "導入食譜", + "import-themes": "導入主題", + "import-settings": "導入設置", + "create-heading": "創建備份", + "backup-tag": "標籤備份" + } + }, + "migration": { + "recipe-migration": "食譜遷移", + "currently-chowdown-via-public-repo-url-is-the-only-supported-type-of-migration": "當前遷移類型只限於Chowdown公開倉庫網址", + "chowdown-repo-url": "Chowdown倉庫網址", + "migrate": "遷移", + "failed-recipes": "食譜失敗", + "failed-images": "圖片失敗", + "you-can-import-recipes-from-either-a-zip-file-or-a-directory-located-in-the-app-data-migraiton-folder-please-review-the-documentation-to-ensure-your-directory-structure-matches-what-is-expected": "您可以從zip文件或者/app/data/migration/文件夾中的目錄導入食譜。請查看文檔以確保您的目錄結構符合預期。", + "nextcloud-data": "Nextcloud數據", + "delete-confirmation": "您確定要刪除此遷移數據嗎?", + "successfully-imported-from-nextcloud": "從Nextcloud導入成功", + "failed-imports": "導入失敗", + "upload-an-archive": "上傳檔案" + } +} diff --git a/frontend/src/store/modules/language.js b/frontend/src/store/modules/language.js index 893976f10..e273232e3 100644 --- a/frontend/src/store/modules/language.js +++ b/frontend/src/store/modules/language.js @@ -18,7 +18,15 @@ const state = { { name: "Swedish", value: "sv", - } + }, + { + name: "简体中文", + value: "zh-CN", + }, + { + name: "繁體中文", + value: "zh-TW", + }, ], };