I am trying to implement language translation in my app using the following plugin vue-i18n
I am following this documentation
https://github.com/martinlindhe/laravel-vue-i18n-generator
When I run the following code
composer require…
Maybe the title isn't to clear so let me explain a little bit.I am using vue-i18n with Laravel and succesfully generated translation files too.But in my translation file I used more that one word to translate. a snap of my messages
messages:{
"Your…
I using with nuxt.js and nuxt-i18n to use locales.
But I always got this message on console by duplicate that even I using nuxt generate from folder structure.
Message:
Routing:
Sample of config:
modules: [
'@nuxtjs/axios',
['nuxt-i18n',…
I'm using Vuex and the Vue-i18n plugin in my app. I'm getting undefined on my non-reactive array that I want to share between the plugins. If I log the array in both files, the i18n file prints first (undefined) and vuex prints the array as expected…
I'm using vue-i18n and I was wondering if there is a way to dynamically change the source file of to match the locale language.
For each vue component I have a folder with my different translations :
├── myComponent
| └── lang
| …
Having a main.js -> App.vue -> router/index.js -> Index.vue
In Index.vue I am trying to run vue-i18n (7.8.0) where the data would be provided by VueX store as:
// ...
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
export default {
name:…
I don't have any problem in localizing the components and views strings but I am lock into finding a way to localize dynamically the Toolbar items ( and of course the same items in the navigation drawer..
Currently they are displayed in App.vue as…
I am trying to implement vue-i18n Vue-i18n Github and I 'have got an error :
vue.js:597 [Vue warn]: Property or method "$t" is not defined
My vuejs 2 app is working fine until I add the getting starded code, where am I wrong? Thanks in…
I have some files that return simple data, like mutation.js for vuex but generally they are just like this:
export default {
...
someFunction() {}
...
}
Right now, I would like to access this. so I can use the vue-i18n translation like…
I have a json file filled with tranlations I am trying to use those translation.
First this is how I am trying to call the translation.
import messages from './i18n/messages.json
export default {
...
methods:{
data: {
messages
},
…