@iwotech/i18n-remote

1.1.2 • Public • Published

远程文字多语言处理

使用示例

import i18n,{ setLocale, remoteText } from '@iwotech/i18n-remote'

// i18n 内部vue-i18n实例

// 设置语言
setLocale('zh-CN')

// 获取文本(具有响应式,可在 template 中使用)
remoteText('key')

// Vue
// export default {
//   methods:{
//     remoteText
//   }
// }

Readme

Keywords

none

Package Sidebar

Install

npm i @iwotech/i18n-remote

Weekly Downloads

0

Version

1.1.2

License

none

Unpacked Size

1.38 kB

Total Files

3

Last publish

Collaborators

  • cansonzheng
  • roshin2