From 45993fadcc7a4e40acfb75bd0baa19c1354395da Mon Sep 17 00:00:00 2001 From: crupest Date: Fri, 12 Jun 2020 15:42:08 +0800 Subject: feat(front): 2 enhance on app upgrade. 1. Other pages show alert to refresh when a page confirm upgrade. 2. Upgrade success alert. --- Timeline/ClientApp/src/app/locales/en/translation.ts | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Timeline/ClientApp/src/app/locales/en') diff --git a/Timeline/ClientApp/src/app/locales/en/translation.ts b/Timeline/ClientApp/src/app/locales/en/translation.ts index b9fa42c9..6bac41f9 100644 --- a/Timeline/ClientApp/src/app/locales/en/translation.ts +++ b/Timeline/ClientApp/src/app/locales/en/translation.ts @@ -5,9 +5,14 @@ const translation: TranslationResource = { search: 'Search', serviceWorker: { availableOffline: - 'This app will be cached in your computer and you can use it offline.', - upgradeTitle: 'App is getting a new version!', - upgradeNow: 'Upgrade Now', + 'Timeline is now cached in your computer and you can use it offline. 🎉🎉🎉', + upgradePrompt: 'App is getting a new version!', + upgradeNow: 'Update Now', + upgradeSuccess: + 'Congratulations! App update succeeded! Still you can use it offline. 🎉🎉🎉', + externalActivatedPrompt: + 'A new version of app is activated. Please refresh the page. Or it may be broken.', + reloadNow: 'Refresh Now', }, nav: { settings: 'Settings', -- cgit v1.2.3