plugin-i18next-vue@1.0.0
·
113 commits
to master
since this release
Initial release of @enum-plus/plugin-i18next-vue.
✨ Features
- Seamless integration between
enum-plusandi18next-vue. - Enum item
labelfields can be i18n keys (e.g.week.monday). - Enum type
namecan also be a i18n key (e.g.weekDays.name). - Automatic resolution of current language each time a label is accessed (no stale cache).
- Automatic UI repaint after language change.
- Global
localizeconfiguration:useTranslationOptions: options object passed touseTranslation.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.