2025-10-5
Initial release of @enum-plus/plugin-react-i18next.
- Seamless integration between
enum-plusandreact-i18next. - Enum item
labelfields can be i18next localization keys (e.g.week.monday). - Enum type
namecan also be a localization key (e.g.weekDays.name). - Automatic resolution of current language each time a label is accessed (no stale cache).
- Global
localizeconfiguration:instance: customi18nextinstance (falls back to global default).tOptions: static options object passed toi18next.t.- Functional
tOptions(key):- Return a dynamic options object, OR
- Return a final translated string (short‑circuit translation pipeline).
- Full control over translation logic by returning a string directly in
tOptions.
- Automatic UI repaint after language change.
Please consider framework plugins like @enum-plus/plugin-react / @enum-plus/plugin-i18next-vue.