B
B
Bogdan2018-04-03 15:12:52
Vue.js
Bogdan, 2018-04-03 15:12:52

How to make multilingual?

Hello. Tell me please. How to do multilingual. I have an idea. Make in Vuex -> state -> language. Well, then in each component, make attributes through computed. for example

v-text-field(
  :label='username_label'
  v-model='username'
)

 computed: {
    username_label( ) { return this.$store.state.language =='ru' ? 'Имя' : 'Name' }
}

Or are there other options? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexey Yarkov, 2018-04-03
@bogdan_uman

vue-i18n

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question