[Vuejs]-Adding language option in one component but not captions

0👍

With vue-i18n, you can provide a locale explicitly in your component in german:

https://kazupon.github.io/vue-i18n/api/#vue-injected-methods

$t('yourKey', 'de')

It also works with the directive: https://kazupon.github.io/vue-i18n/api/#v-t

You can load both languages, set english as the default language, and explicitly use german in your special component.

Leave a comment