1
0
forked from mirror/misskey

enhance(frontend): error message i18n

This commit is contained in:
syuilo 2024-08-24 16:59:17 +09:00
parent 8032a4e12a
commit 44f62160cb
3 changed files with 10 additions and 0 deletions

4
locales/index.d.ts vendored
View File

@ -5068,6 +5068,10 @@ export interface Locale extends ILocale {
*
*/
"createdAntennas": string;
/**
*
*/
"clipNoteLimitExceeded": string;
"_delivery": {
/**
*

View File

@ -1263,6 +1263,7 @@ confirmWhenRevealingSensitiveMedia: "センシティブなメディアを表示
sensitiveMediaRevealConfirm: "センシティブなメディアです。表示しますか?"
createdLists: "作成したリスト"
createdAntennas: "作成したアンテナ"
clipNoteLimitExceeded: "これ以上このクリップにノートを追加できません。"
_delivery:
status: "配信状態"

View File

@ -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',