iotex-react-language-dropdown
v2.4.3
Published
field_description
Downloads
24
Keywords
Readme
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 componentnpm run build
: build source code fromsrc
todist
npm publish
: publish code to npmnpm 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)