2.0.2 • Published 3 years ago
x-i18n v2.0.2
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>