From 49296aac3845e77a8255576a1800a8af899154af Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 2 Apr 2017 03:34:36 +0900 Subject: [PATCH] wip #332 --- locales/en.yml | 2 ++ locales/ja.yml | 2 ++ src/web/app/common/scripts/check-for-update.js | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/locales/en.yml b/locales/en.yml index b3dd47fc3..fe9dce48f 100644 --- a/locales/en.yml +++ b/locales/en.yml @@ -19,6 +19,8 @@ common: surprise: "Wow" congrats: "Congrats!" + update-available: "Misskeyの新しいバージョンがあります({newer}。現在{current}を利用中)。\nページを再度読み込みすると更新が適用されます。" + tags: mk-messaging-form: placeholder: "Enter message here" diff --git a/locales/ja.yml b/locales/ja.yml index 196d32bd6..87e430d77 100644 --- a/locales/ja.yml +++ b/locales/ja.yml @@ -19,6 +19,8 @@ common: surprise: "わお" congrats: "おめでとう" + update-available: "Misskeyの新しいバージョンがあります({newer}。現在{current}を利用中)。\nページを再度読み込みすると更新が適用されます。" + tags: mk-messaging-form: placeholder: "ここにメッセージを入力" diff --git a/src/web/app/common/scripts/check-for-update.js b/src/web/app/common/scripts/check-for-update.js index 7f4c1cdee..b004d33f8 100644 --- a/src/web/app/common/scripts/check-for-update.js +++ b/src/web/app/common/scripts/check-for-update.js @@ -7,7 +7,7 @@ export default function() { res.json().then(meta => { if (meta.version != VERSION) { localStorage.setItem('should-refresh', 'true'); - alert(`Misskeyの新しいバージョンがあります(${meta.version}。現在${VERSION}を利用中)。\nページを再度読み込みすると更新が適用されます。`); + alert('%i18n:common:update-available%'.replace('{newer}', meta.version).replace('{current}', VERSION)); } }); });