Make string 'Refresh' and 'New update available' translatable (#524)

* Make string 'Refresh' and 'New update available' translatable

* Fix change password string
This commit is contained in:
zierbeek 2021-06-16 20:30:46 +02:00 committed by GitHub
parent 5a8555dd61
commit 81fd224d88
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 4 deletions

View File

@ -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() {

View File

@ -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",

View File

@ -29,7 +29,7 @@
<template v-slot:open="{ open }">
<v-btn color="info" class="mr-1" small @click="open">
<v-icon left>mdi-lock</v-icon>
Change Password
{{$t('settings.change-password')}}
</v-btn>
</template>