mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 22:59:15 +02:00
i18n: lazy-loading
This commit is contained in:
parent
de753502c9
commit
bddb950beb
7 changed files with 27 additions and 18 deletions
|
@ -9,6 +9,7 @@
|
|||
<div class="three wide column">
|
||||
<h4 class="ui header">Links</h4>
|
||||
<div class="ui link list">
|
||||
<p>{{ $t('Hello, world!') }}</p>
|
||||
<router-link class="item" to="/about">
|
||||
About this instance
|
||||
</router-link>
|
||||
|
@ -49,7 +50,8 @@ export default {
|
|||
PlaylistModal
|
||||
},
|
||||
created () {
|
||||
console.log(this.$t('hello'))
|
||||
this.$i18n.i18next.changeLanguage('fr')
|
||||
console.log(this.$t('Hello, world!'))
|
||||
this.$store.dispatch('instance/fetchSettings')
|
||||
let self = this
|
||||
setInterval(() => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue