I have a locale.js file which is responsible for defining user locale. Here it is: import store from '@/vuex/index' let locale const defaultLocale = 'en_US' if (store.getters['auth/authenticated']) { locale = store.gette...
I'm working on a Vue project on a static environment with no Node or Vue-cli, We're importing Vue, Vuetify and vue-i18n using CDNs We need to have the Vuetify components translated using the Vue-i18n like shown here Here is a codepen of an...
I am trying to do a multi-language site with Vue.js, but I don't know how to call the const i18n or how to refer to it. I already tried the eventBus option, but I think this is not the right choice. I'm using vue-router. Navbar.vue <temp...
Summary I am using vue-i18n for i18n and Avoriaz for unit testing my Vue.js components. I get many warnings because of not translated strings, which I can't fix. How can I get rid of these warnings? Warning example '[vue-i18n] Cannot tr...
I'm using Vue-i18n package. In every component i include a JSON file with translations, like this: // this is a Vue template: home.vue <i18n src="../locales/pages/home.json"></i18n> Locally it works fine. But i'm stori...
Using Vue-i18n and following this tutorial, I managed to add tags in json in my project gererated by vue-cli. In this page, there is an example to write yaml instead of json. But there is no example with the Vue-Cli 3 Webpack managment. So I tried...
I'm building Vue app without using npm. As there are too many guides referring to npm, I can not follow them correctly. So, I just included scripts like this: <script src="/js/bluebird.min.js"></script> <script src...
I am using vue-i18n for localization. When I want to translate input placeholders, as in: <input type="text" v-model="someValue" :placeholder="$t('translation.string')"> I have to use the $t() function which is...
Documentation on i18n integration with vee-validate is incomplete, in my opinion. I still can't figure out on how to translate field names, if i use i18n with vee-validate. Here's my main.js: import ruValidation from 'vee-validate/dist/...
My use case I work on a large app where, depending on a user role, I load/import different modules sets. This is a meteor app, with Vue, vue-router & vue-i18n on the frontend, but no store like vuex. Each module comes with its own routes, trans...
©2020 All rights reserved.