Skip to content

plugin-i18next@1.0.0

Choose a tag to compare

@shijistar shijistar released this 05 Oct 13:32
· 130 commits to master since this release

Initial release of @enum-plus/plugin-i18next.

✨ Features

  • Seamless integration of enum-plus with i18next.
  • Global localize options:
    • instance: custom i18next instance (defaults to global).
    • tOptions: static object passed to i18next.t.
    • Functional tOptions(key) returning:
      • A dynamic options object, or
      • A final translated string (short‑circuit translation).
  • Supports enum item label fields as i18next keys (e.g. week.monday).
  • Supports enum type name localization key.

Not Included

  • Automatic UI repaint after language change.

Please consider framework plugins like @enum-plus/plugin-react / @enum-plus/plugin-vue.