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>

Readme

Keywords

Package Sidebar

Install

npm i vue-localization

Weekly Downloads

1

Version

1.0.0

License

MIT

Last publish

Collaborators

  • languanghao