diff --git a/locales/en-US.yml b/locales/en-US.yml index f4ff6fac9..804b9281b 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -1139,6 +1139,8 @@ confirm: "Confirm" importZip: "Import ZIP" exportZip: "Export ZIP" emojiPackCreator: "Emoji pack creator" +languageForTranslation: "Post translation language" +detectPostLanguage: "Automatically detect the language and show a translate button for posts in foreign languages" _sensitiveMediaDetection: description: "Reduces the effort of server moderation through automatically recognizing diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 76b7aa434..d7884eccd 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -988,6 +988,8 @@ youHaveUnreadAnnouncements: "未読のお知らせがあります" neverShow: "今後表示しない" remindMeLater: "また後で" addRe: "閲覧注意の投稿への返信で、注釈の先頭に\"re:\"を追加する" +languageForTranslation: "投稿翻訳に使用する言語" +detectPostLanguage: "投稿の言語を自動検出し、外国語の投稿に翻訳ボタンを表示する" _sensitiveMediaDetection: description: "機械学習を使って自動でセンシティブなメディアを検出し、モデレーションに役立てられます。サーバーの負荷が少し増えます。" diff --git a/packages/client/package.json b/packages/client/package.json index d371254bf..6bd13bac9 100644 --- a/packages/client/package.json +++ b/packages/client/package.json @@ -81,6 +81,7 @@ "three": "0.156.0", "throttle-debounce": "5.0.0", "tinycolor2": "1.6.0", + "tinyld": "^1.3.4", "tsc-alias": "1.8.7", "tsconfig-paths": "4.2.0", "twemoji-parser": "14.0.0", diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 539b734d6..bfd2b6e68 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -219,6 +219,14 @@ + +