|
4 | 4 |
|
5 | 5 | ## 1.0.0 |
6 | 6 |
|
7 | | -2025-10-5 |
| 7 | +2025-12-23 |
8 | 8 |
|
9 | | -Initial release of `@enum-plus/plugin-i18next`. |
| 9 | +Initial release of `@enum-plus/plugin-next-international`. |
10 | 10 |
|
11 | 11 | ### ✨ Features |
12 | 12 |
|
13 | | -- Seamless integration of `enum-plus` with `i18next`. |
14 | | -- Global `localize` options: |
15 | | - - `instance`: custom `i18next` instance (defaults to global). |
16 | | - - `tOptions`: static object passed to `i18next.t`. |
17 | | - - Functional `tOptions(key)` returning: |
18 | | - - A dynamic options object, or |
19 | | - - A final translated string (short‑circuit translation). |
20 | | -- Supports enum item `label` fields as i18next keys (e.g. `week.monday`). |
21 | | -- Supports enum type `name` localization key. |
22 | | - |
23 | | -### Not Included |
24 | | - |
25 | | -- Automatic UI repaint after language change. |
26 | | - |
27 | | -> Please consider framework plugins like [@enum-plus/plugin-react](https://www.npmjs.com/package/@enum-plus/plugin-react) / [@enum-plus/plugin-i18next-vue](https://www.npmjs.com/package/@enum-plus/plugin-i18next-vue). |
| 13 | +- React integration for `enum-plus` with automatic UI re-render on language change. |
| 14 | +- Enum labels & enum name localize to React elements (not plain strings). |
| 15 | +- Global localization configuration fields: |
| 16 | + - `localize.mode`: localization mode (`text` or `component`). |
| 17 | + - `text`: returns plain text, does not auto-update on language change. |
| 18 | + - `component`: returns a React component that auto-updates on language change. |
| 19 | + - `isMatch.defaultSearchField` (for search helpers) |
| 20 | +- Search helper APIs for non-string labels: |
| 21 | + - `WeekEnum.isMatch(search, item)` (case-insensitive fuzzy match) |
| 22 | + - `WeekEnum.isMatchCaseSensitive(search, item)` |
| 23 | +- Works seamlessly with enum-generated option arrays (e.g. for `<Select />`). |
0 commit comments