2020欧洲杯时间表

Questions tagged [vue-i18n]

2020欧洲杯时间表 Use when referencing the vue-i18n plugin for Vue.js

Filter by
Sorted by
Tagged with
0
votes
0answers
4 views

warning in ./resources/js/plugins/i18n.js "export 'default' (imported as 'VueI18n') was not found in 'vue-i18n' : Vue I18n VueJS Laravel

I'm tri to use vue i18n in my project Laravel / Vue but I have this error message warning in ./resources/js/plugins/i18n.js "export 'default' (imported as 'VueI18n') was not found in 'vue-...
0
votes
2answers
14 views

Vue-i18n translation in script part of component not updating when changing lang

I have a pretty simple landing page in Vue.js and Bootstrap vue and I managed to get i18n running pretty well on the whole page, however, on the subject part of the contact form I have some options to ...
2
votes
0answers
13 views

Vue-i18n localStorage.lang not working after building project

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 ...
0
votes
0answers
10 views

How can I add vue-i18n plugin to each component separately when using web-components?

I'm using vue-i18n VueJS translation plugin to translate my web-components built with vue-custom-element The question: How can I add translations using external .json files to my web-components? ...
0
votes
1answer
26 views

ref no longer reactive within a reactive array object

The following code works fine. When we change the language the text gets updated correctly thanks to the ref: const mainNavigationLinks = computed(() => [ { label: context.root.$t('...
1
vote
1answer
46 views

Vue-i18n - npm run serve fails with error TypeError: Cannot read property 'i18n' of undefined

I implemented my vue application with i18n and it worked all fine yesterday. But when I tried to start my application today I got the error which you can see in the title. I can give the following ...
0
votes
0answers
22 views

TypeError: Cannot read property '_t' of undefined on component instance

Hello I am trying to use the vue-18i-n in order to translate the application, the code when I use this is the component that I'll create after call to API of the following way: Create component on ...
0
votes
1answer
18 views

switch translation variable in quasar

To print translation data I am using default command {{ $t('failed') }} I would like to change the variable t to some other variable {{ $t_abc('failed') }} Is it doable?
0
votes
2answers
16 views

How to get in script tag of vue file of / pages / when using Nuxt.js and nuxt-i18n

http://qiita.com/munieru_jp/items/d7e9f98b5ab5960e7a93 If you do as above, you can get the contents of {{$ t ('HELLO_WORLD')}} in the <template> tag. How can I get {{$ t ('HELLO_WORLD')}} in ...
0
votes
1answer
16 views

How to translate a sentence or word entered from a textarea with vuei18n?

I have the following json as an example: { "Hello":"Hola" "how":"como" "You go":"te va" "text 4": "texto 4" "text 5: "texto 5" } that will serve me for the translations of the ...
0
votes
0answers
22 views

What is clean, scalable way to translate routes in vue.js using vue-router according to the app active locale?

In my case, I have a VueJS (vue-cli) app that has both English & Arabic interface. As per the client's request, I need to also have the route path translated to the active locale that the user has ...
0
votes
0answers
26 views

Vue i18n doesn't update in store when switching language in components

I have a store module containing i18n data in state variables: import i18n from '@/localization'; export default { state: { title: i18n.t('title'), recommendation: i18n.t('recommendation') ...
0
votes
0answers
21 views

VueJs change breadcrumbs values

I have a breadcrumbs element and I'm using i18n for the text property : breadcrumbsItems: [ { text: this.$t('home'), disabled: false, href: '/', }, { ...
0
votes
0answers
7 views

How to get the current locale in Vue i18n plugin?

I tried with this.$i18n.locale but that only gives me the browser's locale, not the current language being used (I have a default local fallback) Something like this.$i18n.currentLanguage doesn't seem ...
1
vote
1answer
27 views

How to translate sentences using vuei18n?

Currently I have been able to translate only words, but in the case of wanting to translate an entire sentence, I don't know how to do it. taking the following example json { "Hello":"Hola" "...

15 30 50 per page
1
2 3 4 5
16