vue-localization

1.0.0 • Public • Published

vue-gettext

Add localization to vue template

Usage

import VueGettext from 'vue-gettext';

// register a global gettext method for translate.
window.gettext = (input)=> localizationDict[input];

Vue.use(VueGettext);

In component.vue

<template>
  <div>{{ _('Hello world') }}</div>
</template>

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    0
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    0

Package Sidebar

Install

npm i vue-localization

Weekly Downloads

0

Version

1.0.0

License

MIT

Last publish

Collaborators

  • languanghao