0.2.0 • Published 4 years ago
@peajs/i18n v0.2.0
Pea i18n
Installation
npm i @peajs/i18n
Quick Start
locale file
locales
├── cn.json
├── default.json
└── en.json
// en.json
{
"name": "pea"
}
import { i18n } from '@peajs/i18n'
export default () => (
<div>{i18n.name}</div>
)
// ...