From 81fd224d88d613a12ae4c840ee140b17326bf88d Mon Sep 17 00:00:00 2001 From: zierbeek <58994651+zierbeek@users.noreply.github.com> Date: Wed, 16 Jun 2021 20:30:46 +0200 Subject: [PATCH] Make string 'Refresh' and 'New update available' translatable (#524) * Make string 'Refresh' and 'New update available' translatable * Fix change password string --- frontend/src/App.vue | 4 ++-- frontend/src/locales/messages/en-US.json | 4 +++- frontend/src/pages/Admin/Profile/UserCard.vue | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/frontend/src/App.vue b/frontend/src/App.vue index 28155a907a99..73f8f0f43a10 100644 --- a/frontend/src/App.vue +++ b/frontend/src/App.vue @@ -112,8 +112,8 @@ export default { // The new service worker is installed, but not yet active. // Store the ServiceWorkerRegistration instance for later use. this.registration = e.detail; - this.snackBtnText = "Refresh"; - this.snackWithBtnText = "New version available!"; + this.snackBtnText = this.$t("events.refresh"); + this.snackWithBtnText = this.$t("events.new-version"); this.snackWithButtons = true; }, refreshApp() { diff --git a/frontend/src/locales/messages/en-US.json b/frontend/src/locales/messages/en-US.json index 712d1fd152ba..580c7effbfea 100644 --- a/frontend/src/locales/messages/en-US.json +++ b/frontend/src/locales/messages/en-US.json @@ -44,7 +44,9 @@ "scheduled": "Scheduled", "something-went-wrong": "Something Went Wrong!", "subscribed-events": "Subscribed Events", - "test-message-sent": "Test Message Sent" + "test-message-sent": "Test Message Sent", + "refresh": "Refresh", + "new-version": "New version available!" }, "general": { "apply": "Apply", diff --git a/frontend/src/pages/Admin/Profile/UserCard.vue b/frontend/src/pages/Admin/Profile/UserCard.vue index 1fe0f0177a7a..b46775b1caf8 100644 --- a/frontend/src/pages/Admin/Profile/UserCard.vue +++ b/frontend/src/pages/Admin/Profile/UserCard.vue @@ -29,7 +29,7 @@