From 7b33c63f78eb87ce80fe5ed29af62860384415d9 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 2 Aug 2018 19:03:31 +0900 Subject: #332 (#2065) --- src/client/app/common/scripts/compose-notification.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/client/app/common/scripts/compose-notification.ts') 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 }; -- cgit v1.2.3-freya