iotex-react-language-dropdown

2.4.3 • Public • Published

iotex-react-language-dropdown

how to use in your project

base use(default show all languages menu):

import LanguageSwitcher from "iotex-react-language-dropdown";
<LanguageSwitcher/>

setting user languages menu, eg:

import { Languages } from "iotex-react-language-dropdown";
<LanguageSwitcher supportLanguages={[Languages.EN, Languages.ZH_CN]}/>

use google tools(default false), eg:

<LanguageSwitcher googleTools={true}/>

Scripts

  • npm run dev: develop react component
  • npm run build: build source code from src to dist
  • npm publish: publish code to npm
  • npm run changelog-patch bump version patch (bug fixes)
  • npm run changelog-minor bump version minor (new features)
  • npm run changelog-major bump version major (breaking change)

Readme

Keywords

none

Package Sidebar

Install

npm i iotex-react-language-dropdown

Weekly Downloads

76

Version

2.4.3

License

MIT

Unpacked Size

65.5 kB

Total Files

20

Last publish

Collaborators

  • qevan1
  • mortalhuu
  • jevin_f
  • haaai_202108
  • zongzheng
  • xueping
  • koishi
  • solan