From 39105d0c8871930afac04cf8cc6e26f3739cb89f Mon Sep 17 00:00:00 2001 From: naskya Date: Thu, 4 May 2023 14:13:13 +0900 Subject: [PATCH] Refactor soft word mutes --- locales/en-US.yml | 3 + locales/ja-JP.yml | 3 + packages/client/src/components/MkNote.vue | 16 +++- .../client/src/components/MkNoteDetailed.vue | 16 +++- packages/client/src/components/MkNoteSub.vue | 40 +++++++++ .../client/src/scripts/check-word-mute.ts | 84 ++++++++++++------- 6 files changed, 128 insertions(+), 34 deletions(-) diff --git a/locales/en-US.yml b/locales/en-US.yml index 4acb0fc5b..89c0a08e6 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -663,6 +663,9 @@ regexpErrorDescription: "An error occurred in the regular expression on line {li instanceMute: "Instance Mutes" userSaysSomething: "{name} said something" userSaysSomethingReason: "{name} said {reason}" +userSaysSomethingReasonReply: "{name} replied to a post containing {reason}" +userSaysSomethingReasonRenote: "{name} boosted a post containing {reason}" +userSaysSomethingReasonQuote: "{name} quoted a post containing {reason}" makeActive: "Activate" display: "Display" copy: "Copy" diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 8ae43cdb9..cb01fb564 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -619,6 +619,9 @@ regexpErrorDescription: "{tab}ワードミュートの{line}行目の正規表 instanceMute: "インスタンスミュート" userSaysSomething: "{name}が何かを言いました" userSaysSomethingReason: "{name}が{reason}と言いました" +userSaysSomethingReasonReply: "{name}が{reason}を含む投稿に返信しました" +userSaysSomethingReasonRenote: "{name}が{reason}を含む投稿をブーストしました" +userSaysSomethingReasonQuote: "{name}が{reason}を含む投稿を引用しました" makeActive: "アクティブにする" display: "表示" copy: "コピー" diff --git a/packages/client/src/components/MkNote.vue b/packages/client/src/components/MkNote.vue index 7e3fd6be5..67eab29c7 100644 --- a/packages/client/src/components/MkNote.vue +++ b/packages/client/src/components/MkNote.vue @@ -198,7 +198,7 @@
- +