'How to force translate i18n in some specific text (variable) in Vuejs
In normal context, we just attach translation property to a variable like :
this.name = this.$t('language.name');
But I want to specific it in a specific language sometime( ex: in French).
Can we do something like this in vue.js ?
this.name = this.$t('language.name', locale: fr);
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
