JSPM

vue-i18n

0.0.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1708930
  • Score
    100M100P100Q180258F
  • License MIT

Internationalization plugin of Vue.js

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

Build Status Coverage Status

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.