@tdio/locale
v1.0.1
Published
Internationalization plugin for Vue.js stack modulars
Downloads
1
Readme
@tdio/locale
Internationalization plugin for Vue.js stack modulars.
based on
vue-i18n
export global i18n shortcut:$t(ns [, value])
Installation
$ yarn add @tdio/locale -D
import { i18n, $t } from '@tdio/locale'
// initial locale
i18n.setLocaleMessage('zh', {
'Hello World': '你好, xxx'
})
console.log($t('Hello World'))
License
MIT Copyright (c) Allex Wang