x-i18n

react xui i18n国际化

Usage no npm install needed!

<script type="module">
  import xI18n from 'https://cdn.skypack.dev/x-i18n';
</script>

README

x-i18n

react i18n国际化

npm

npm install --save-dev x-i18n

使用

//接受两个参数返回当前语言包
 renderContent=(local,localCode)=>{
 }
<I18n defaultValue={this.state.local}>
    {this.renderContent}
</I18n>

关于作者

https://github.com/tianxiangbing