Merge branch 'master' into apollo_updateBalance

This commit is contained in:
einhorn_b 2021-09-23 17:13:31 +02:00
commit 65e4b28c82
4 changed files with 11 additions and 3 deletions

2
database/build/.env.dist Normal file
View File

@ -0,0 +1,2 @@
// For production you need to put your env file in here.
// Please copy the dist file from the root folder in here and rename it to .env

View File

@ -105,7 +105,8 @@
"language": "Sprache",
"languages": {
"de": "Deutsch",
"en": "English"
"en": "English",
"success": "Deine Sprache wurde erfolgreich geändert."
},
"login": "Anmeldung",
"logout": "Abmelden",

View File

@ -105,7 +105,8 @@
"language": "Language",
"languages": {
"de": "Deutsch",
"en": "English"
"en": "English",
"success": "Your language has been successfully updated."
},
"login": "Login",
"logout": "Logout",

View File

@ -62,6 +62,7 @@
</b-card>
</template>
<script>
import { localeChanged } from 'vee-validate'
import LanguageSwitchSelect from '../../../components/LanguageSwitchSelect.vue'
import { updateUserInfos } from '../../../graphql/queries'
@ -98,8 +99,11 @@ export default {
},
})
.then(() => {
this.$store.commit('language', this.language)
this.$i18n.locale = this.language
this.$store.commit('language', this.$i18n.locale)
localeChanged(this.$i18n.locale)
this.cancelEdit()
this.$toasted.success(this.$t('languages.success'))
})
.catch((error) => {
this.$toasted.error(error.message)