summaryrefslogtreecommitdiff
path: root/src/client/app/common/scripts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2019-02-28 20:57:38 +0900
committersyuilo <syuilotan@yahoo.co.jp>2019-02-28 20:57:38 +0900
commit9a9fb37a78698aea9415c38ac6dd32a073be3ad6 (patch)
treed261b7d1d7d8becb25dbb56a34f7a3bbbd19d47e /src/client/app/common/scripts
parent10.90.4 (diff)
downloadmisskey-9a9fb37a78698aea9415c38ac6dd32a073be3ad6.tar.gz
misskey-9a9fb37a78698aea9415c38ac6dd32a073be3ad6.tar.bz2
misskey-9a9fb37a78698aea9415c38ac6dd32a073be3ad6.zip
Update compose-notification.ts
Diffstat (limited to 'src/client/app/common/scripts')
-rw-r--r--src/client/app/common/scripts/compose-notification.ts14
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 f65672ee30..ec854f2f4d 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 'driveFileCreated':
return {
- title: '%i18n:common.notification.file-uploaded%',
+ title: 'File uploaded',
body: data.name,
icon: data.url
};
case 'unreadMessagingMessage':
return {
- title: '%i18n:common.notification.message-from%'.split('{}')[0] + `${getUserName(data.user)}` + '%i18n:common.notification.message-from%'.split('{}')[1] ,
+ title: `New message from ${getUserName(data.user)}`,
body: data.text, // TODO: getMessagingMessageSummary(data),
icon: data.user.avatarUrl
};
case 'reversiInvited':
return {
- 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],
+ title: 'Play reversi with me',
+ body: `You got reversi invitation from ${getUserName(data.parent)}`,
icon: data.parent.avatarUrl
};
@@ -38,21 +38,21 @@ export default function(type, data): Notification {
switch (data.type) {
case 'mention':
return {
- title: '%i18n:common.notification.notified-by%'.split('{}')[0] + `${getUserName(data.user)}:` + '%i18n:common.notification.notified-by%'.split('{}')[1],
+ title: `${getUserName(data.user)}:`,
body: getNoteSummary(data),
icon: data.user.avatarUrl
};
case 'reply':
return {
- title: '%i18n:common.notification.reply-from%'.split('{}')[0] + `${getUserName(data.user)}` + '%i18n:common.notification.reply-from%'.split('{}')[1],
+ title: `You got reply from ${getUserName(data.user)}:`,
body: getNoteSummary(data),
icon: data.user.avatarUrl
};
case 'quote':
return {
- title: '%i18n:common.notification.quoted-by%'.split('{}')[0] + `${getUserName(data.user)}` + '%i18n:common.notification.quoted-by%'.split('{}')[1],
+ title: `${getUserName(data.user)}:`,
body: getNoteSummary(data),
icon: data.user.avatarUrl
};