react-native-i18n-guosheng

0.0.2 • Public • Published

kyo-react-native-i18n

react-native多语言解决方案。

install

npm i react-native-i18n-guosheng --save-dev

Use

import i18n from 'react-native-i18n-guosheng'


let langJson = {
  en_US: {
    name: {
      first: 'kyo',
      last: 'guo'
    }
  },
  fr_FR: {
    name: {
      first: 'kyo_fr',
      last: 'guo_fr'
    }
  }
}

let $t = i18n.create(langJson);
let firstName = $t('name.first');
console.log(firstName);

Readme

Keywords

Package Sidebar

Install

npm i react-native-i18n-guosheng

Weekly Downloads

0

Version

0.0.2

License

MIT

Unpacked Size

1.42 kB

Total Files

3

Last publish

Collaborators

  • kyo4311