Skip to content

Commit 61a9f33

Browse files
committed
docs: add i18n section to README
1 parent 6fd87b3 commit 61a9f33

1 file changed

Lines changed: 19 additions & 0 deletions

File tree

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,25 @@ And import style manually:
6666
import 'tiny-ui/dist/styles/index.css';
6767
```
6868

69+
## 🌍 Internationalization
70+
71+
Built-in support for English and Chinese. Set locale via `ConfigProvider` or `IntlProvider`:
72+
73+
```jsx
74+
import { ConfigProvider, zh_CN } from 'tiny-ui';
75+
76+
const App = () => (
77+
<ConfigProvider locale={zh_CN}>
78+
<MyApp />
79+
</ConfigProvider>
80+
);
81+
```
82+
83+
| Locale | Language |
84+
| ------ | -------- |
85+
| en_US | English (default) |
86+
| zh_CN | 简体中文 |
87+
6988
## 🖥 Browser Support
7089

7190
Supports all major modern browsers.

0 commit comments

Comments
 (0)