1.0.1 • Published 4 months ago
@tdio/locale v1.0.1
@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