diff options
| author | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-08-02 19:03:31 +0900 |
|---|---|---|
| committer | Aya Morisawa <AyaMorisawa4869@gmail.com> | 2018-08-02 19:03:31 +0900 |
| commit | 7b33c63f78eb87ce80fe5ed29af62860384415d9 (patch) | |
| tree | 27969fbead652090f31137b3a39d377bff582b71 /src/client/app/common/scripts/compose-notification.ts | |
| parent | Refactoring (diff) | |
| download | sharkey-7b33c63f78eb87ce80fe5ed29af62860384415d9.tar.gz sharkey-7b33c63f78eb87ce80fe5ed29af62860384415d9.tar.bz2 sharkey-7b33c63f78eb87ce80fe5ed29af62860384415d9.zip | |
#332 (#2065)
Diffstat (limited to 'src/client/app/common/scripts/compose-notification.ts')
| -rw-r--r-- | src/client/app/common/scripts/compose-notification.ts | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/app/common/scripts/compose-notification.ts b/src/client/app/common/scripts/compose-notification.ts index c93609bc59..4fb0610fd7 100644 --- a/src/client/app/common/scripts/compose-notification.ts +++ b/src/client/app/common/scripts/compose-notification.ts @@ -15,22 +15,22 @@ export default function(type, data): Notification { switch (type) { case 'drive_file_created': return { - title: 'ファイルがアップロードされました', + title: '%i18n:common.notification.file-uploaded%', body: data.name, icon: data.url }; case 'unread_messaging_message': return { - title: `${getUserName(data.user)}さんからメッセージ:`, + title: '%i18n:common.notification.message-from%'.split("{}")[0] + `${getUserName(data.user)}` + '%i18n:common.notification.message-from%'.split("{}")[1] , body: data.text, // TODO: getMessagingMessageSummary(data), icon: data.user.avatarUrl }; case 'reversi_invited': return { - title: '対局への招待があります', - body: `${getUserName(data.parent)}さんから`, + title: '%i18n:common.notification.reversi-invited%', + body: '%i18n:common.notification.reversi-invited-by%'.split("{}")[0] + `${getUserName(data.parent)}` + '%i18n:common.notification.reversi-invited-by%'.split("{}")[1], icon: data.parent.avatarUrl }; @@ -38,21 +38,21 @@ export default function(type, data): Notification { switch (data.type) { case 'mention': return { - title: `${getUserName(data.user)}さんから:`, + title: '%i18n:common.notification.notified-by%'.split("{}")[0] + `${getUserName(data.user)}さんから:` + '%i18n:common.notification.notified-by%'.split("{}")[1], body: getNoteSummary(data), icon: data.user.avatarUrl }; case 'reply': return { - title: `${getUserName(data.user)}さんから返信:`, + title: '%i18n:common.notification.reply-from%'.split("{}")[0] + `${getUserName(data.user)}` + '%i18n:common.notification.reply-from%'.split("{}")[1], body: getNoteSummary(data), icon: data.user.avatarUrl }; case 'quote': return { - title: `${getUserName(data.user)}さんが引用:`, + title: '%i18n:common.notification.quoted-by%'.split("{}")[0] + `${getUserName(data.user)}` + '%i18n:common.notification.quoted-by%'.split("{}")[1], body: getNoteSummary(data), icon: data.user.avatarUrl }; |