Package Exports
- vue-i18n
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (vue-i18n) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
vue-i18n
Internationalization plugin of Vue.js
Installing
$ component install kazupon/vue-i18n
Usage
var Vue = require('vue');
var i18n = require('vue-i18n');
// ready translated resources
var resources = {
en: {
message: {
hello: 'world'
}
},
ja: {
message: {
hello: 'δΈη'
}
}
};
// set plugin
Vue.use(i18n, {
lang: 'ja',
resources: resources
});
<div class="message">
<p v-t="message.hello"></p>
</div>
Testing
TODO:
License
See the LICENSE
.