I am using vue-i18n for localization. When I want to translate input placeholders, as in:
I have to use the $t() function which is executed on every re-render (library…
I use nuxtjs and i18n to build a static website with multiple languages. At the moment I have one json file per language. For better structure i want to split the file in multiple files per language. How can i do that? Is there a way where i can…
trying to implement vue-i18n in a component with composition api.
I want to be able to set some translation messages inside of the onMounted hook. In the options api, I would use this.$i18n.setLocaleMessage(locale, messages).
However, this is…
I am using vue-i18n in a Nuxtjs project, and I want to import my locale files with vite dynamicly.
when I am using webpack, those code run well
plugins/i18n.js
import Vue from 'vue';
import VueI18n from 'vue-i18n';
import config from…
How can I call a function when the language/locale changes while using i18n?
Should I use Vuex or does vue-i18n has a method that allows me to do that?
I'm currently trying to internationalize my vue 3 vite project with "@intlify/vite-plugin-vue-i18n". The problem I am facing here, is that i currently have to import and setup the t variable for every component to use it.
example…
Now I'm building an app in Vue.js supports multiple Languages.
And I implemented internationalization using https://kazupon.github.io/vue-i18n.
I want to change getting message part in i18n from static JSON file in a project to API call…
I'm trying to internationalize my data table header using Vuetify + I18n.
When I translate my normal code, it works correctly, but now I need to translate the header of my data table built with Vuetify.
I've already tried to add the code…
i'm using component interpolation as described here but also have some html tags in my translation string for formatting purposes. how should i deal with this?
I'm using vue-i18n package to translate my Vue project and want to use "I18n Ally" vs code extention to manage translations. The default folder structure for this extension is this:
locales # i18n, langs, locale are also acceptable
├──…
Is there any way to update Vue-router routes programmatically without reloading the page?
I'm loading different route paths based on the language that is selected, e.g.:
{ path: '/' + i18n.t('url_welcome'), name: 'welcome, component: Welcome…
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 attempt…
I want to create a dynamical slider which depends on the page.
security_signin: {
slide1: 'Kitten1',
slide2: 'Kitten2',
},
signup: {
slide1: 'Kitten1',
slide2: 'Kitten2',
slide3: 'Kitten3'
…
With Nuxt, you can set the language HTML attribute inside the nuxt.config.js file like so:
module.exports = {
head: {
htmlAttrs: {
lang: 'en-GB',
},
... etc etc
However, what should you do if you have a multi-language app? Is there any…
My main app.js
import Vue from 'vue'
import language from './language'
import VueI18n from 'vue-i18n'
Vue.use(VueI18n)
const i18n = new VueI18n({
locale: 'en',
messages:…