guillaumevincent / vue-polyglot

basic translation plugin for VueJS 2+
https://guillaumevincent.github.io/vue-polyglot/example/
MIT License
43 stars 7 forks source link

child components #5

Closed suenot closed 7 years ago

suenot commented 7 years ago

How to use:

Vue.locales({
  'en': {
    'title': 'Coins list'
  },
  'ru': {
    'title': 'Список монет'
  },
  'zh': {
    'title': '資產'
  }
})

in child coin.vue component? This overrides main comonent config app.vue.

guillaumevincent commented 7 years ago

@suenot if I understand you properly, you want to be able to add locale directly inside your component?

guillaumevincent commented 7 years ago

See https://github.com/guillaumevincent/vue-polyglot#extend-translations-synchronously Feature available in version 0.2.0