summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsyuilo <4439005+syuilo@users.noreply.github.com>2024-08-24 16:59:17 +0900
committersyuilo <4439005+syuilo@users.noreply.github.com>2024-08-24 16:59:17 +0900
commit44f62160cb4b876f415b48b0574592f87bea9b3d (patch)
treedc900da0538bc3939555c11f16899c2bbe73ada1
parentenhance(frontend): サイズ制限を超過するファイルをアップロ... (diff)
downloadmisskey-44f62160cb4b876f415b48b0574592f87bea9b3d.tar.gz
misskey-44f62160cb4b876f415b48b0574592f87bea9b3d.tar.bz2
misskey-44f62160cb4b876f415b48b0574592f87bea9b3d.zip
enhance(frontend): error message i18n
-rw-r--r--locales/index.d.ts4
-rw-r--r--locales/ja-JP.yml1
-rw-r--r--packages/frontend/src/scripts/get-note-menu.ts5
3 files changed, 10 insertions, 0 deletions
diff --git a/locales/index.d.ts b/locales/index.d.ts
index 75e1703b4a..9fd3441ab1 100644
--- a/locales/index.d.ts
+++ b/locales/index.d.ts
@@ -5068,6 +5068,10 @@ export interface Locale extends ILocale {
* 作成したアンテナ
*/
"createdAntennas": string;
+ /**
+ * これ以上このクリップにノートを追加できません。
+ */
+ "clipNoteLimitExceeded": string;
"_delivery": {
/**
* 配信状態
diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml
index 98e3cbfa41..587b67d987 100644
--- a/locales/ja-JP.yml
+++ b/locales/ja-JP.yml
@@ -1263,6 +1263,7 @@ confirmWhenRevealingSensitiveMedia: "センシティブなメディアを表示
sensitiveMediaRevealConfirm: "センシティブなメディアです。表示しますか?"
createdLists: "作成したリスト"
createdAntennas: "作成したアンテナ"
+clipNoteLimitExceeded: "これ以上このクリップにノートを追加できません。"
_delivery:
status: "配信状態"
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts
index 2563b0baf3..b5d7350a41 100644
--- a/packages/frontend/src/scripts/get-note-menu.ts
+++ b/packages/frontend/src/scripts/get-note-menu.ts
@@ -66,6 +66,11 @@ export async function getNoteClipMenu(props: {
});
if (props.currentClip?.id === clip.id) props.isDeleted.value = true;
}
+ } else if (err.id === 'f0dba960-ff73-4615-8df4-d6ac5d9dc118') {
+ os.alert({
+ type: 'error',
+ text: i18n.ts.clipNoteLimitExceeded,
+ });
} else {
os.alert({
type: 'error',