diff --git a/CHANGELOG_CHERRYPICK.md b/CHANGELOG_CHERRYPICK.md index 1d3885ef86..edf8157e83 100644 --- a/CHANGELOG_CHERRYPICK.md +++ b/CHANGELOG_CHERRYPICK.md @@ -94,6 +94,7 @@ Misskey의 전체 변경 사항을 확인하려면, [CHANGELOG.md#2023xx](CHANGE - 개인간 대화 알림을 받았을 때, 대화 내용을 푸시 알림에 표시 - 그룹간 대화 알림을 받았을 때, 채팅을 보낸 사용자와 내용을 표시 - 팔로우 알림에 Acct 및 host 정보 표시 + - 리액션 알림 디자인 개선 - Enhance: 사용자 반응 목록 API 성능 향상 (MisskeyIO/misskey#278) - Fix: RedisKVCache에서 Redis에서 읽은 값을 MemoryKVCache에 다시 쓰기 (MisskeyIO/misskey#289) - Fix: redisForJobQueue 연결 사용 (MisskeyIO/misskey#268) diff --git a/locales/en-US.yml b/locales/en-US.yml index c318a5c173..682dc507e9 100644 --- a/locales/en-US.yml +++ b/locales/en-US.yml @@ -2457,6 +2457,7 @@ _notification: youGotMention: "{name} mentioned you" youGotReply: "{name} replied to you" youGotQuote: "{name} quoted you" + youGotReact: "{name} reacted to you" youRenoted: "Renote from {name}" youWereFollowed: "followed you" youReceivedFollowRequest: "You've received a follow request" diff --git a/locales/index.d.ts b/locales/index.d.ts index 6fce5f1507..0678071e92 100644 --- a/locales/index.d.ts +++ b/locales/index.d.ts @@ -2643,6 +2643,7 @@ export interface Locale { "youGotMention": string; "youGotReply": string; "youGotQuote": string; + "youGotReact": string; "youRenoted": string; "youWereFollowed": string; "youReceivedFollowRequest": string; diff --git a/locales/ja-JP.yml b/locales/ja-JP.yml index 41a7859859..39e0817b46 100644 --- a/locales/ja-JP.yml +++ b/locales/ja-JP.yml @@ -2541,6 +2541,7 @@ _notification: youGotMention: "{name}からのメンション" youGotReply: "{name}からのリプライ" youGotQuote: "{name}による引用" + youGotReact: "{name}が反応しました" youRenoted: "{name}がRenoteしました" youWereFollowed: "フォローされました" youReceivedFollowRequest: "フォローリクエストが来ました" diff --git a/locales/ko-KR.yml b/locales/ko-KR.yml index be81026e34..0b88f377d6 100644 --- a/locales/ko-KR.yml +++ b/locales/ko-KR.yml @@ -2473,6 +2473,7 @@ _notification: youGotMention: "{name} 님이 나를 멘션했어요!" youGotReply: "{name} 님이 답글을 달았어요!" youGotQuote: "{name} 님이 인용했어요!" + youGotReact: "{name} 님이 반응했어요!" youRenoted: "{name} 님이 리노트했어요!" youWereFollowed: "새로운 팔로워가 있어요!" youReceivedFollowRequest: "새로운 팔로우 요청이 있어요!" diff --git a/packages/sw/src/scripts/create-notification.ts b/packages/sw/src/scripts/create-notification.ts index 0dc6b55079..7d074f5f25 100644 --- a/packages/sw/src/scripts/create-notification.ts +++ b/packages/sw/src/scripts/create-notification.ts @@ -162,8 +162,8 @@ async function composeNotification(data: PushNotificationDataMap[keyof PushNotif } const tag = `reaction:${data.body.note.id}`; - return [`${reaction} ${getUserName(data.body.user)}`, { - body: data.body.note.text ?? '', + return [t('_notification.youGotReact', { name: getUserName(data.body.user) }), { + body: reaction + '\n' + data.body.note.text ?? '', icon: data.body.user.avatarUrl, tag, badge,