From 0db5181ec0550a034e3af8ef2d5948258259769c Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Wed, 10 Aug 2022 15:31:35 +0900 Subject: [PATCH 1/7] Add Japanese translations. Add Japanese translation files and setting. --- src/main/services/i18n/language.ts | 3 +- .../services/i18n/locales/ja_JP/common.json | 62 ++++++++++++++++ .../services/i18n/locales/ja_JP/dialog.json | 13 ++++ .../services/i18n/locales/ja_JP/menu.json | 71 +++++++++++++++++++ .../i18n/locales/ja_JP/preferences.json | 45 ++++++++++++ .../services/i18n/locales/ja_JP/special.json | 25 +++++++ 6 files changed, 218 insertions(+), 1 deletion(-) create mode 100644 src/main/services/i18n/locales/ja_JP/common.json create mode 100644 src/main/services/i18n/locales/ja_JP/dialog.json create mode 100644 src/main/services/i18n/locales/ja_JP/menu.json create mode 100644 src/main/services/i18n/locales/ja_JP/preferences.json create mode 100644 src/main/services/i18n/locales/ja_JP/special.json diff --git a/src/main/services/i18n/language.ts b/src/main/services/i18n/language.ts index cd6f4a63..cea0806d 100644 --- a/src/main/services/i18n/language.ts +++ b/src/main/services/i18n/language.ts @@ -5,5 +5,6 @@ export const language = { ru: 'Русский', zh_CN: '中文 (简体)', zh_TW: '中文 (繁體)', - zh_HK: '中文 (繁體 香港特別行政區)' + zh_HK: '中文 (繁體 香港特別行政區)', + ja_JP: '日本語' } diff --git a/src/main/services/i18n/locales/ja_JP/common.json b/src/main/services/i18n/locales/ja_JP/common.json new file mode 100644 index 00000000..12cf1cfe --- /dev/null +++ b/src/main/services/i18n/locales/ja_JP/common.json @@ -0,0 +1,62 @@ +{ + "button": { + "moveStorage": "ストレージを移動", + "openStorage": "ストレージを開く", + "newStorage": "新規ストレージ", + "fromMassCodeV1": "massCode v1.0から", + "fromSnippetsLab": "SnippetsLabから", + "confirm": "OK", + "cancel": "キャンセル", + "update": ["GitHubへ", "OK"], + "ok": "OK" + }, + "newFolder": "新規フォルダ", + "newSnippet": "新規スニペット", + "newFragment": "新規フラグメント", + "addDescription": "説明を追加", + "addToFavorites": "お気に入りに追加", + "addTag": "タグを追加", + "exportToHtml": "HTMLにエキスポート", + "saveScreenshot": "スクリーンショットを保存", + "rename": "名前変更", + "duplicate": "複製", + "delete": "削除", + "deleteNow": "すぐに削除", + "defaultLanguage": "標準の言語", + "removeFromFavorites": "お気に入りから削除", + "emptyTrash": "ゴミ箱を空に", + "close": "閉じる", + "folder": { + "untitled": "名称未設定フォルダ", + "plural": "フォルダ" + }, + "snippet": { + "untitled": "名称未設定スニペット", + "plural": "スニペット", + "emptyName": "スニペット名を付ける", + "selectedMultiple": "{{count}} 個のスニペットを選択中", + "noSelected": "スニペットは選択されていません" + }, + "fragment": "フラグメント", + "search": "検索", + "line": "行", + "column": "Column", + "sidebar": { + "inbox": "カテゴリなし", + "favorites": "お気に入り", + "allSnippets": "すべてのスニペット", + "trash": "ゴミ箱", + "untitled": "名称未設定フォルダ", + "folders": "フォルダ", + "library": "ライブラリ", + "tags": "タグ" + }, + "darkMode": "ダークモード", + "background": "背景", + "restartApp": "massCodeを再起動", + "updateAvailable": "アップデートがあります", + "hide": "隠す", + "show": "表示する", + "collapse-all": "すべて縮小", + "expand-all": "すべて展開" +} diff --git a/src/main/services/i18n/locales/ja_JP/dialog.json b/src/main/services/i18n/locales/ja_JP/dialog.json new file mode 100644 index 00000000..a115fa17 --- /dev/null +++ b/src/main/services/i18n/locales/ja_JP/dialog.json @@ -0,0 +1,13 @@ +{ + "deleteConfirm": "{{name}} を完全に削除してよろしいですか?", + "deleteConfirmMultipleSnippets": "選択している {{count}} 個のスニペットを完全に削除してよろしいですか?", + "noUndo": "この操作は復元できません。", + "allSnippetsMoveToTrash": "このフォルダー内のスニペットはすべてゴミ箱に移動されます。", + "deleteTag": "すべてのスニペットからこのタグが削除されます。", + "emptyTrash": "ゴミ箱に入っている全てのスニペットが完全に削除されます。よろしいですか?", + "migrateConfirm": [ + "{{name}} からデータが移行されます。よろしいですか?", + "現在のライブラリは全て上書きされます。" + ], + "createDb": "別のフォルダを選択してください。" +} diff --git a/src/main/services/i18n/locales/ja_JP/menu.json b/src/main/services/i18n/locales/ja_JP/menu.json new file mode 100644 index 00000000..acfce5d1 --- /dev/null +++ b/src/main/services/i18n/locales/ja_JP/menu.json @@ -0,0 +1,71 @@ +{ + "app": { + "label": "massCode", + "preferences": "設定", + "update": { + "label": "アップデートがあるか確認", + "message": "バージョン {{newVersion}} がダウンロード可能です。\n現在使用しているバージョンは {{oldVersion}} です。", + "button": ["Githubを開く", "OK"], + "noUpdate": "アップデートはありません。" + }, + "quit": "massCodeを終了", + "about": "massCodeについて", + "hide": "massCodeを隠す", + "hideOther": "他を隠す", + "showAll": "すべて表示" + }, + "help": { + "label": "ヘルプ", + "website": "ウェブサイト", + "documentation": "ドキュメント", + "viewInGitHub": "GitHubで見る", + "changeLog": "更新履歴", + "reportIssue": "課題を提出", + "giveStar": "スターを付ける", + "extension": { + "vscode": "VS Code 拡張機能", + "raycast": "Raycast 拡張機能", + "alfred": "Alfred 拡張機能" + }, + "donate": { + "openCollective": "Open Collectiveで寄付をする", + "payPal": "PayPalで寄付をする" + }, + "twitter": "Twitter", + "devTools": "Developer Toolsを表示", + "links": { + "snippets": "スニペットコレクション" + } + }, + "file": { + "label": "ファイル", + "find": "検索" + }, + "view": { + "label": "表示", + "sortBy": { + "label": "スニペットの整列", + "dateModified": "更新日", + "dateCreated": "作成日", + "name": "名前" + } + }, + "edit": { + "label": "ラベル", + "undo": "元に戻す", + "redo": "やり直し", + "cut": "切り取り", + "copy": "コピー", + "paste": "貼り付け", + "delete": "削除", + "selectAll": "すべて選択" + }, + "editor": { + "label": "エディタ", + "copy": "スニペットをクリップボードにコピー", + "format": "フォーマット", + "previewMarkdown": "Markdownをプレビュー", + "previewCode": "コードをプレビュー", + "previewScreenshot": "スクリーンショットをプレビュー" + } +} diff --git a/src/main/services/i18n/locales/ja_JP/preferences.json b/src/main/services/i18n/locales/ja_JP/preferences.json new file mode 100644 index 00000000..5acaa840 --- /dev/null +++ b/src/main/services/i18n/locales/ja_JP/preferences.json @@ -0,0 +1,45 @@ +{ + "title": "設定", + "storage": { + "label": "ストレージ", + "migrate": "データの移行", + "count": "登録個数" + }, + "editor": { + "label": "エディタ", + "fontSize": "フォントサイズ", + "fontFamily": "フォントファミリ", + "wrap": { + "label": "行の折り返し", + "wordWrap": "折り返す", + "off": "折り返ししない" + }, + "tabSize": "タブサイズ", + "showInvisibles": "非表示文字を表示する", + "highlightLine": "行をハイライトする", + "highlightGutter": "ガターをハイライトする", + "matchBrackets": "ブラケットの強調", + "prettier": { + "label": "行の整形", + "trailingComma": { + "label": "末尾のコンマ", + "none": "何もしない", + "all": "すべて", + "es6": "ES6準拠" + }, + "semi": "セミコロン", + "singleQuote": "シングルクォーテーション" + } + }, + "appearance": { + "label": "外観", + "theme": { + "label": "テーマ", + "light": "ライト", + "dark": "ダーク" + } + }, + "language": { + "label": "表示言語" + } +} diff --git a/src/main/services/i18n/locales/ja_JP/special.json b/src/main/services/i18n/locales/ja_JP/special.json new file mode 100644 index 00000000..09faae16 --- /dev/null +++ b/src/main/services/i18n/locales/ja_JP/special.json @@ -0,0 +1,25 @@ +{ + "description": { + "storage": "iCloud Drive、Google Drive、Dropboxなどの同期サービスを利用する場合は、ストレージフォルダを同期フォルダに移動するだけです。", + "migrate": { + "1": "massCode v1.0 から移行する場合は、データベースファイルのあるフォルダーを選択します。", + "2": "SnippetsLabから移行する場合は、JSONファイルを選択します。", + "3": [ + "SnippetsLab.JPから移行時の制限事項:", + "JSONファイル(v2.1以下)はネストしたフォルダを表現できないため、すべてのフォルダは第一階層となります。", + "サポートされていない言語のスニペットは、デフォルトのPlain Textに設定されます。" + ] + }, + "htmlCssPreview": "HTMLやCSS言語によるフラグメントを追加して、結果を表示することができます。" + }, + "success": { + "migrate": "データの移行が完了しました。" + }, + "error": { + "folderContainDb": "フォルダにはすでに \"db.json\" が存在します。", + "folderNotContainDb": "フォルダには \"db.json\" が存在しません。" + }, + "unsponsored": "サポートしていません", + "supportMessage": "やあ!アントンです。👋

\nmassCodeを使ってくれてありがとう。もしあなたがこのソフトを気に入ったのなら、ぜひ{{-tagStart}}寄付{{-tagEnd}}をお願いします!。 このプロジェクトを開発し続けるための力になります。", + "snippetsShowcase": "スニペットショーケース" +} From 9ec0df49ed8ded22fae0793c65f312206f85f999 Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Wed, 10 Aug 2022 15:33:22 +0900 Subject: [PATCH 2/7] Fix typo --- src/main/services/i18n/locales/en/preferences.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/i18n/locales/en/preferences.json b/src/main/services/i18n/locales/en/preferences.json index 3daeac30..671de23f 100644 --- a/src/main/services/i18n/locales/en/preferences.json +++ b/src/main/services/i18n/locales/en/preferences.json @@ -15,7 +15,7 @@ "off": "Off" }, "tabSize": "Tab Size", - "showInvisibles": "Snow Invisibles", + "showInvisibles": "Show Invisibles", "highlightLine": "Highlight Line", "highlightGutter": "Highlight Gutter", "matchBrackets": "Match Brackets", From 1b5228b35018eee3c53453b1d17281131a3a78b5 Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Wed, 10 Aug 2022 16:24:03 +0900 Subject: [PATCH 3/7] add japanese transration after #215 --- src/main/services/i18n/locales/ja_JP/menu.json | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/services/i18n/locales/ja_JP/menu.json b/src/main/services/i18n/locales/ja_JP/menu.json index acfce5d1..7e8683f9 100644 --- a/src/main/services/i18n/locales/ja_JP/menu.json +++ b/src/main/services/i18n/locales/ja_JP/menu.json @@ -67,5 +67,10 @@ "previewMarkdown": "Markdownをプレビュー", "previewCode": "コードをプレビュー", "previewScreenshot": "スクリーンショットをプレビュー" + }, + "markdown": { + "label": "Markdown", + "presentationMode": "プレゼンテーションモード", + "preview": "プレビュー" } } From 90efd51c16509a3149ff4115cf0d14dbfa72d31f Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Thu, 18 Aug 2022 08:22:15 +0900 Subject: [PATCH 4/7] Edit transration --- src/main/services/i18n/locales/ja_JP/common.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/services/i18n/locales/ja_JP/common.json b/src/main/services/i18n/locales/ja_JP/common.json index 12cf1cfe..ddbc531f 100644 --- a/src/main/services/i18n/locales/ja_JP/common.json +++ b/src/main/services/i18n/locales/ja_JP/common.json @@ -40,7 +40,7 @@ "fragment": "フラグメント", "search": "検索", "line": "行", - "column": "Column", + "column": "列", "sidebar": { "inbox": "カテゴリなし", "favorites": "お気に入り", From ab1031bef9f2ce52dc3d813c01450aba4dfbc0ee Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Thu, 18 Aug 2022 09:06:37 +0900 Subject: [PATCH 5/7] Update Japanese transration for after #239 --- src/main/services/i18n/locales/ja_JP/common.json | 2 +- src/main/services/i18n/locales/ja_JP/menu.json | 11 ++++++++++- src/main/services/i18n/locales/ja_JP/preferences.json | 4 ++++ src/main/services/i18n/locales/ja_JP/special.json | 10 +++++++--- 4 files changed, 22 insertions(+), 5 deletions(-) diff --git a/src/main/services/i18n/locales/ja_JP/common.json b/src/main/services/i18n/locales/ja_JP/common.json index 12cf1cfe..ddbc531f 100644 --- a/src/main/services/i18n/locales/ja_JP/common.json +++ b/src/main/services/i18n/locales/ja_JP/common.json @@ -40,7 +40,7 @@ "fragment": "フラグメント", "search": "検索", "line": "行", - "column": "Column", + "column": "列", "sidebar": { "inbox": "カテゴリなし", "favorites": "お気に入り", diff --git a/src/main/services/i18n/locales/ja_JP/menu.json b/src/main/services/i18n/locales/ja_JP/menu.json index 7e8683f9..a6c8722d 100644 --- a/src/main/services/i18n/locales/ja_JP/menu.json +++ b/src/main/services/i18n/locales/ja_JP/menu.json @@ -66,11 +66,20 @@ "format": "フォーマット", "previewMarkdown": "Markdownをプレビュー", "previewCode": "コードをプレビュー", - "previewScreenshot": "スクリーンショットをプレビュー" + "previewScreenshot": "スクリーンショットをプレビュー", + "fontSizeIncrease": "フォントを拡大", + "fontSizeDecrease": "フォントを縮小", + "fontSizeReset": "フォントサイズをリセット" }, "markdown": { "label": "Markdown", "presentationMode": "プレゼンテーションモード", "preview": "プレビュー" + }, + "history": { + "label": "履歴", + "back": "戻る", + "forward": "進む" + } } } diff --git a/src/main/services/i18n/locales/ja_JP/preferences.json b/src/main/services/i18n/locales/ja_JP/preferences.json index 5acaa840..4f84c53f 100644 --- a/src/main/services/i18n/locales/ja_JP/preferences.json +++ b/src/main/services/i18n/locales/ja_JP/preferences.json @@ -41,5 +41,9 @@ }, "language": { "label": "表示言語" + }, + "markdown": { + "label": "Markdown", + "codeRenderer": "コードブロックレンダラ" } } diff --git a/src/main/services/i18n/locales/ja_JP/special.json b/src/main/services/i18n/locales/ja_JP/special.json index 09faae16..9e241a49 100644 --- a/src/main/services/i18n/locales/ja_JP/special.json +++ b/src/main/services/i18n/locales/ja_JP/special.json @@ -10,7 +10,11 @@ "サポートされていない言語のスニペットは、デフォルトのPlain Textに設定されます。" ] }, - "htmlCssPreview": "HTMLやCSS言語によるフラグメントを追加して、結果を表示することができます。" + "htmlCssPreview": "HTMLやCSS言語によるフラグメントを追加して、結果を表示することができます。", + "codeBlockRenderer": [ + "Codemirrorを使用する場合、コードブロックに設定する言語は下記対応言語の中からのみ選択できます。", + "対応言語一覧" + ] }, "success": { "migrate": "データの移行が完了しました。" @@ -20,6 +24,6 @@ "folderNotContainDb": "フォルダには \"db.json\" が存在しません。" }, "unsponsored": "サポートしていません", - "supportMessage": "やあ!アントンです。👋

\nmassCodeを使ってくれてありがとう。もしあなたがこのソフトを気に入ったのなら、ぜひ{{-tagStart}}寄付{{-tagEnd}}をお願いします!。 このプロジェクトを開発し続けるための力になります。", - "snippetsShowcase": "スニペットショーケース" + "supportMessage": "やあ!アントンです。👋

\nmassCodeを使ってくれてありがとう。もしあなたがこのソフトを気に入ったのなら、ぜひ{{-tagStart}}寄付{{-tagEnd}}をお願いします!。 massCodeを開発し続けるための力になります。", + "snippetsShowcase": "スニペットライブラリ" } From e312be32ee21765724772d3fe1e5a21962c66391 Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Fri, 19 Aug 2022 12:38:17 +0900 Subject: [PATCH 6/7] fix: Json error Clear excess brackets --- src/main/services/i18n/locales/ja_JP/menu.json | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/main/services/i18n/locales/ja_JP/menu.json b/src/main/services/i18n/locales/ja_JP/menu.json index a6c8722d..5bd136c8 100644 --- a/src/main/services/i18n/locales/ja_JP/menu.json +++ b/src/main/services/i18n/locales/ja_JP/menu.json @@ -5,7 +5,10 @@ "update": { "label": "アップデートがあるか確認", "message": "バージョン {{newVersion}} がダウンロード可能です。\n現在使用しているバージョンは {{oldVersion}} です。", - "button": ["Githubを開く", "OK"], + "button": [ + "Githubを開く", + "OK" + ], "noUpdate": "アップデートはありません。" }, "quit": "massCodeを終了", @@ -81,5 +84,4 @@ "back": "戻る", "forward": "進む" } - } -} +} \ No newline at end of file From f78c1302085988346710d837323d7bcba9534b9d Mon Sep 17 00:00:00 2001 From: "Takefumi \"Abell\" Ota" Date: Fri, 19 Aug 2022 12:43:35 +0900 Subject: [PATCH 7/7] fix(i18n): add new words Japanese translations add new translate for after d842b29 --- src/main/services/i18n/locales/en/menu.json | 2 +- src/main/services/i18n/locales/ja_JP/common.json | 4 +++- src/main/services/i18n/locales/ja_JP/menu.json | 5 +---- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/main/services/i18n/locales/en/menu.json b/src/main/services/i18n/locales/en/menu.json index 2f7f66ef..19e933c9 100644 --- a/src/main/services/i18n/locales/en/menu.json +++ b/src/main/services/i18n/locales/en/menu.json @@ -81,4 +81,4 @@ "back": "Back", "forward": "Forward" } -} +} \ No newline at end of file diff --git a/src/main/services/i18n/locales/ja_JP/common.json b/src/main/services/i18n/locales/ja_JP/common.json index ddbc531f..c042cb10 100644 --- a/src/main/services/i18n/locales/ja_JP/common.json +++ b/src/main/services/i18n/locales/ja_JP/common.json @@ -58,5 +58,7 @@ "hide": "隠す", "show": "表示する", "collapse-all": "すべて縮小", - "expand-all": "すべて展開" + "expand-all": "すべて展開", + "restore": "回復", + "copy-snippet-link": "スニペットリンクをコピー" } diff --git a/src/main/services/i18n/locales/ja_JP/menu.json b/src/main/services/i18n/locales/ja_JP/menu.json index 5bd136c8..bb08e17f 100644 --- a/src/main/services/i18n/locales/ja_JP/menu.json +++ b/src/main/services/i18n/locales/ja_JP/menu.json @@ -5,10 +5,7 @@ "update": { "label": "アップデートがあるか確認", "message": "バージョン {{newVersion}} がダウンロード可能です。\n現在使用しているバージョンは {{oldVersion}} です。", - "button": [ - "Githubを開く", - "OK" - ], + "button": ["Githubを開く", "OK"], "noUpdate": "アップデートはありません。" }, "quit": "massCodeを終了",