Open source personal finance application
locale: add update texts
ilkome3a17d72fdcdf
diff --git a/layouts/default.vue b/layouts/default.vueindex 538876e1..2dd6af73 100644--- a/layouts/default.vue+++ b/layouts/default.vue@@ -19,15 +19,16 @@ export default {window.addEventListener('resize', debounce(this.getPageDimensions, 600))const workbox = await window.$workbox+if (workbox) {workbox.addEventListener('installed', (event) => {// If we don't do this we'll be displaying the notification after the initial installation, which isn't perferred.if (event.isUpdate) {this.$notify({- title: 'New version available',- text: 'Please reload the app'+ title: this.$t('app.update.title'),+ text: this.$t('app.update.text'),+ duration: 10000})- console.log('whatever logic you want to use to notify the user that they need to refresh the page.2')}})}diff --git a/locales/en-US.js b/locales/en-US.jsindex ab09195c..46c678d4 100644--- a/locales/en-US.js+++ b/locales/en-US.js@@ -35,6 +35,10 @@ export default {},app: {+ update: {+ title: 'New version available',+ text: 'Reload the app. Sometimes you need to reload few times. Don\'t worry you can still use the App'+ },version: 'Version',desc: 'Powerful personal finance application',welcome: 'Welcome to Finapp',diff --git a/locales/ru-RU.js b/locales/ru-RU.jsindex 1836ae4b..036a46fc 100644--- a/locales/ru-RU.js+++ b/locales/ru-RU.js@@ -36,6 +36,10 @@ export default {},app: {+ update: {+ title: 'Доступа новая версия',+ text: 'Перезагрузи приложение. Иногда требуется несколько перезагрузок. Не волнуйся ты все равно можно использовать приложение.'+ },version: 'Версия',desc: 'Приложение для учета личных финансов',welcome: 'Добро пожаловать в Финапку',