How do I translate the passed-in attribute/property of a component? For instance, I have a card component with a title and description prop defined like this.
I'm trying to implement lazy loading for vue-i18n, I'm following instructions from https://kazupon.github.io/vue-i18n/guide/lazy-loading.html.
But the import is not behaving the way I expect it. I would expect it to load the files only when called,…
I have a site on nuxtjs, there I use nuxt-i18n with two languages setup, english as a default lang.
If I set second language and refresh a page (f5), an issue occur when I try to switch language back to default. But it looks fine with second…
I get a translated json-file with
const skillsJson = require("./locales/" + localStorage.lang + "/skills.json");
and it works perfectly fine when I run it with npm run serve.
But after building the project using npm run build I get this error in…
We're using the VueI18n plugin for internationalizing our Vue application which is working fine so far. Text contents are managed and translated by our editorial staff using Zanata.
However there is a major drawback in our current approach. We're…
I'm trying to expand the already loaded localizations for a specific component and I would like to do something like this:
export default {
name: 'General',
components: {
Header,
Content,
NextPageButton
},
i18n: {
messages:…
Im trying to use nuxt-I18n module for localization.
I have installed "nuxt-i18n": "^6.4.1"
Also in my nuxt.config.js i have the fallowing
modules: [
[
'nuxt-i18n',
{
defaultLocale: 'en',
…
I have a template which receive a message key when an event triggered.
I passed the "message.i.wanted" to the template, but the i18n is not translating based on the key I passed.
How should I updated my code so i18n can translate based on the key i…
i am currently working on a simple like implementation in nuxt. when i change the language with 1i8n, i want to change the facebook sdk language accordingly, so the button renders in the given language code when i change the overall app language. my…
I have to put a lot of text in my views. These texts are tagged in HTML.
Currently, with Vue l18n, I have an en.json file that looks like that
{
"ok": "Ok",
"cancel": "Cancel",
"error_alert_title": "Oops...",
…
}
To translate a word or a…
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
Locally it works fine.
But i'm storing JSON files with…
I am using vue-i18n in a vue project. And I found it really confusing when using some data in vue data with i18n. Then if I change locale, that data is not reactive. I tried to return that data from another computed data but anyways it is not…
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 am trying to redirect the user through a method when he clicks on specific buttons to change the language of the application.
These buttons are part of the standard layout of which all the pages of the project are part of so the url can differ…
Is there a way to achieve what d3 can do with precisionPrefix in the vue-i18n ecosystem?
There is an open issue here.
And I found an old issue for Intl object here.
Thanks for your help.