From b030109f75ec68eea4427373e2d75ea5d5e47c3d Mon Sep 17 00:00:00 2001 From: AkiraFukushima Date: Sat, 25 Apr 2020 21:15:01 +0900 Subject: [PATCH 1/3] refs #1281 Use i18n in notification status --- src/config/locales/en/translation.json | 4 ++++ .../components/organisms/Notification/Favourite.vue | 11 ++++++----- .../components/organisms/Notification/Follow.vue | 3 ++- .../components/organisms/Notification/Reaction.vue | 3 ++- .../components/organisms/Notification/Reblog.vue | 11 ++++++----- 5 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/config/locales/en/translation.json b/src/config/locales/en/translation.json index b3afe2d8..12fe7ffb 100644 --- a/src/config/locales/en/translation.json +++ b/src/config/locales/en/translation.json @@ -453,6 +453,10 @@ "reblog": { "title": "Reblog", "body": "{{username}} boosted your status" + }, + "reaction": { + "title": "Reaction", + "body": "{{username}} reacted your status" } } } diff --git a/src/renderer/components/organisms/Notification/Favourite.vue b/src/renderer/components/organisms/Notification/Favourite.vue index 0defc936..d18727f3 100644 --- a/src/renderer/components/organisms/Notification/Favourite.vue +++ b/src/renderer/components/organisms/Notification/Favourite.vue @@ -18,7 +18,8 @@
- favourited your status + {{ $t('notification.favourite.body') }}
- is now following you + {{ $t('notification.follow.body') }}
- reacted to your status + {{ $t('notification.reaction.body') }}
- boosted your status + {{ $t('notification.reblog.body') }}