diff --git a/locales/en-US.yml b/locales/en-US.yml
index d76c7e6ffc..041ac21783 100644
--- a/locales/en-US.yml
+++ b/locales/en-US.yml
@@ -2394,3 +2394,10 @@ _externalResourceInstaller:
_themeInstallFailed:
title: "Failed to install theme"
description: "A problem occurred during theme installation. Please try again. Error details can be viewed in the Javascript console."
+
+_animatedMFM:
+ play: "Play MFM Animation"
+ stop: "Stop MFM Animation"
+ _alert:
+ text: "Animated MFMs could include flashing lights and fast moving text/emojis."
+ confirm: "Animate"
diff --git a/locales/index.d.ts b/locales/index.d.ts
index c512896532..56a9f9bc2d 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -2501,6 +2501,14 @@ export interface Locale {
};
};
};
+ "_animatedMFM": {
+ "play": string;
+ "stop": string;
+ "_alert": {
+ "text": string;
+ "confirm": string;
+ };
+ };
}
declare const locales: {
[lang: string]: Locale;
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 4da044a6c8..c45a820e3b 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -2388,3 +2388,10 @@ _externalResourceInstaller:
_themeInstallFailed:
title: "テーマのインストールに失敗しました"
description: "テーマのインストール中に問題が発生しました。もう一度お試しください。エラーの詳細はJavascriptコンソールをご覧ください。"
+
+_animatedMFM:
+ play: "MFMアニメーションを再生"
+ stop: "MFMアニメーション停止"
+ _alert:
+ text: "アニメーションMFMには、点滅するライトや高速で動くテキスト/絵文字を含めることができる。"
+ confirm: "アニメイト"
diff --git a/packages/frontend/src/components/MkNote.vue b/packages/frontend/src/components/MkNote.vue
index 17f0c336ec..2967a753b0 100644
--- a/packages/frontend/src/components/MkNote.vue
+++ b/packages/frontend/src/components/MkNote.vue
@@ -79,8 +79,8 @@ SPDX-License-Identifier: AGPL-3.0-only
- Animated MFM
- Animated MFM
+ {{ i18n.ts._animatedMFM.play }}
+ {{ i18n.ts._animatedMFM.stop }}
@@ -713,8 +713,8 @@ function animatedMFM() {
} else {
os.confirm({
type: 'warning',
- text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
- okText: 'Animate',
+ text: i18n.ts._animatedMFM._alert.text,
+ okText: i18n.ts._animatedMFM._alert.confirm,
}).then((res) => { if (!res.canceled) allowAnim.value = true; });
}
}
diff --git a/packages/frontend/src/components/MkNoteDetailed.vue b/packages/frontend/src/components/MkNoteDetailed.vue
index d475a6f788..0a603dc327 100644
--- a/packages/frontend/src/components/MkNoteDetailed.vue
+++ b/packages/frontend/src/components/MkNoteDetailed.vue
@@ -93,8 +93,8 @@ SPDX-License-Identifier: AGPL-3.0-only
- Animated MFM
- Animated MFM
+ {{ i18n.ts._animatedMFM.play }}
+ {{ i18n.ts._animatedMFM.stop }}
@@ -747,8 +747,8 @@ function animatedMFM() {
} else {
os.confirm({
type: 'warning',
- text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
- okText: 'Animate',
+ text: i18n.ts._animatedMFM._alert.text,
+ okText: i18n.ts._animatedMFM._alert.confirm,
}).then((res) => { if (!res.canceled) allowAnim.value = true; });
}
}
diff --git a/packages/frontend/src/components/MkSubNoteContent.vue b/packages/frontend/src/components/MkSubNoteContent.vue
index b5032e6a38..e1b57536fd 100644
--- a/packages/frontend/src/components/MkSubNoteContent.vue
+++ b/packages/frontend/src/components/MkSubNoteContent.vue
@@ -10,8 +10,8 @@ SPDX-License-Identifier: AGPL-3.0-only
({{ i18n.ts.deleted }})
- Animated MFM
- Animated MFM
+ {{ i18n.ts._animatedMFM.play }}
+ {{ i18n.ts._animatedMFM.stop }}
@@ -78,8 +78,8 @@ function animatedMFM() {
} else {
os.confirm({
type: 'warning',
- text: 'Animated MFMs could include flashing lights and fast moving text/emojis.',
- okText: 'Animate',
+ text: i18n.ts._animatedMFM._alert.text,
+ okText: i18n.ts._animatedMFM._alert.confirm,
}).then((res) => { if (!res.canceled) allowAnim = true; });
}
}