Questions tagged [vue-i18n]

Use when referencing the vue-i18n plugin for Vue.js

Internationalization plugin for Vue.js.

Github Documentation

567 questions
4
votes
2 answers

Vue 3 i18n issue: The message format compilation is not supported in this build

vue & vue-i18n version ex: vue: 3.0.0.0 vue-i18n: 9.0.0-beta.15 Description I am probably doing something very wrong, however I would really appreciate some direction. I followed documentation from vue-i18n@next. Translation does not work and I…
user1263663
  • 75
  • 1
  • 6
4
votes
2 answers

Escaping a pipe in a vue-i18n translation

We need to have a translation in vue-i18n where the translated string have to contain a pipe character ( | ). But in vue-i18n translation files, the pipe is used as delimiter for pluralization. We tried several ways to escape it (single or double…
stefsouron
  • 45
  • 2
  • 3
4
votes
2 answers

Using vue-i18n to translate the default value for a Vue component prop

I'm using vue-i18n to handle localization in my app. I need to apply localization to the default value for a component prop: export default { name: 'ExampleComponent', props: [{ prompt: { required: false, type: String, …
Ian Dickinson
  • 12,875
  • 11
  • 40
  • 67
4
votes
2 answers

Pluralization in vue i18n

Hi i am trying to pluralize based on https://kazupon.github.io/vue-i18n/guide/pluralization.html imageCount== 1 ? $t("message.imageMessage", 1, { imageCount}) : $t("message.imageMessage", imageCount, { imageCount …
user11982170
4
votes
1 answer

nuxt-i18n Strategy:no_prefix

I'm trying to use nuxt-i18n to get internationalization for my application, the following are the nuxt-i18n configs and it works fine, but when I want to use strategy: 'no_prefix' it gives errors ... not sure what to do, please suggest. i18n: { …
4
votes
1 answer

Error in v-on handler: "ReferenceError: i18n is not defined"

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