mirror of
https://github.com/IT4Change/gradido.git
synced 2025-12-13 07:45:54 +00:00
update valiation messages when locale is switched
This commit is contained in:
parent
e1488e834e
commit
106eb66c14
@ -3,18 +3,14 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="main-content">
|
<div class="main-content">
|
||||||
<router-view></router-view>
|
<router-view></router-view>
|
||||||
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
<content-footer v-if="!$route.meta.hideFooter"></content-footer>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
</template>
|
</template>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
import ContentFooter from './ContentFooter.vue';
|
import ContentFooter from './ContentFooter.vue';
|
||||||
|
import { localeChanged } from 'vee-validate'
|
||||||
export default {
|
export default {
|
||||||
components: {
|
components: {
|
||||||
ContentFooter
|
ContentFooter
|
||||||
@ -33,6 +29,7 @@ import ContentFooter from './ContentFooter.vue';
|
|||||||
methods: {
|
methods: {
|
||||||
setLocale(locale) {
|
setLocale(locale) {
|
||||||
this.$i18n.locale = locale
|
this.$i18n.locale = locale
|
||||||
|
localeChanged()
|
||||||
//this.$router.push({
|
//this.$router.push({
|
||||||
// params: { lang: locale }
|
// params: { lang: locale }
|
||||||
//})
|
//})
|
||||||
@ -40,6 +37,7 @@ import ContentFooter from './ContentFooter.vue';
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<style lang="scss">
|
<style lang="scss">
|
||||||
|
|
||||||
|
|||||||
@ -1,13 +1,12 @@
|
|||||||
<template>
|
<template>
|
||||||
<footer class="footer px-4 bg-transparent">
|
<footer class="footer px-4 bg-transparent">
|
||||||
<b-row align-v="center" class="justify-content-lg-between">
|
<b-row align-v="center" class="justify-content-lg-between">
|
||||||
<b-col><div class="copyright text-center text-lg-center text-muted">
|
<b-col>
|
||||||
© {{year}} <a href="#!" to="/login" class="font-weight-bold ml-1" >Gradido-Akademie</a>
|
<div class="copyright text-center text-lg-center text-muted">
|
||||||
</div></b-col>
|
© {{year}} <a href="https://gradido.net/" class="font-weight-bold ml-1" target="_blank">Gradido-Akademie</a>
|
||||||
|
</div>
|
||||||
</b-row>
|
</b-col>
|
||||||
<b-row align-v="center" class="justify-content-lg-between" >
|
<b-col>
|
||||||
<b-col>
|
|
||||||
<b-nav class="nav-footer justify-content-center">
|
<b-nav class="nav-footer justify-content-center">
|
||||||
<b-nav-item ref="https://gradido.net/" target="_blank">
|
<b-nav-item ref="https://gradido.net/" target="_blank">
|
||||||
Gradido
|
Gradido
|
||||||
@ -24,7 +23,14 @@
|
|||||||
</b-nav>
|
</b-nav>
|
||||||
</b-col>
|
</b-col>
|
||||||
</b-row>
|
</b-row>
|
||||||
|
<!--
|
||||||
|
<br>
|
||||||
|
<br>
|
||||||
|
<b-row >
|
||||||
|
<b-col class="nav-link text-center" @click.prevent="setLocale('en')">{{ $t('languages.en') }}XXXXX</b-col>
|
||||||
|
<b-col class="nav-link text-center" @click.prevent="setLocale('de')">{{ $t('languages.de') }}</b-col>
|
||||||
|
</b-row>
|
||||||
|
-->
|
||||||
</footer>
|
</footer>
|
||||||
</template>
|
</template>
|
||||||
<script>
|
<script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user