vue-i18n-directives
Support
- Vue.js 2 ➡️
vue-i18n-directives@>=2.0.0
[master] - Vue.js 1 ➡️
vue-i18n-directives@>=1.0.0
Prerequisites
Installation
$ npm i -S vue-i18n-directives
$ yarn add vue-i18n-directives
Directives
v-t
➡️ Translate and set text through elementinnerText
.v-ta
➡️ Translate and append text through elementinnerText
v-tp
➡️ Translate and set text to inputplaceholder
.v-tc
➡️ Translate and set capitalized text through elementinnerText
.v-tu
➡️ Translate and set uppercased text through elementinnerText
.v-tl
➡️ Translate and set lowercased text through elementinnerText
.
Usage
// main.js;; ; Vue;Vue; // ...
<!-- normal translation --> <!-- placeholder translation --> <!-- capitalize translation --> <!-- uppercase translation --> <!-- lowercase translation --> This will not be overwritten <!-- append translation -->
Development
# dev mode $ npm run dev # test $ npm run test # build $ npm run build # docs $ npm run docs
License
Code Style
This project was built with yeoman and generator-vue-component ❤️