diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-08-03 23:01:14 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-08-03 23:01:14 +0900 |
| commit | e66ec6823d42fe8cc9267be6ea13422e929d989f (patch) | |
| tree | 8124d05bada0ecb4466796a8ae373b634104b224 /src/client/app/common/scripts/compose-notification.ts | |
| parent | New translations ja.yml (English) (diff) | |
| parent | :pizza: (diff) | |
| download | misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.tar.gz misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.tar.bz2 misskey-e66ec6823d42fe8cc9267be6ea13422e929d989f.zip | |
Merge branch 'master' into l10n_master
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 }; |