react-multilang-translate
Features
- Translate with message object
- Mutiline translate
- Implementation with React
- Usage with Redux is recommended
- Decorate the style with props.
Installation
yarn add react-multilang-translate
or
npm install --save react-multilang-translate
Import
// at the top of your app
Usage
//message.jsconst MESSAGE = en_US : example_say_hello : 'Hello' ko_KR : example_say_hello : '안녕하세요'
;;; { return <Translator transKey='example_say_hello' locale='en_US' messageObj=MESSAGE /> ; }
Example
git clone https://github.com/BKJang/react-multilang-translate.gitcd react-multilang-translate/examplenpm installnpm start
Copyright and License
MIT License
Copyright (c) 2019 BKJang(PaulJ)