@tdio/locale
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

@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

Readme

Keywords

Package Sidebar

Install

npm i @tdio/locale

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

6.03 kB

Total Files

8

Last publish

Collaborators

  • allex