x-i18n
react i18n国际化
npm
npm install --save-dev x-i18n
使用
//接受两个参数返回当前语言包
renderContent=(local,localCode)=>{
}
<I18n defaultValue={this.state.local}>
{this.renderContent}
</I18n>
react i18n国际化
npm install --save-dev x-i18n
//接受两个参数返回当前语言包
renderContent=(local,localCode)=>{
}
<I18n defaultValue={this.state.local}>
{this.renderContent}
</I18n>
npm i x-i18n
13
2.0.2
MIT
107 kB
41