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", "language": "Sprache",
"languages": { "languages": {
"de": "Deutsch", "de": "Deutsch",
"en": "English" "en": "English",
"success": "Deine Sprache wurde erfolgreich geändert."
}, },
"login": "Anmeldung", "login": "Anmeldung",
"logout": "Abmelden", "logout": "Abmelden",

View File

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

View File

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