createVueI18nAdapter
Commons
stable
Wraps a vue-i18n instance into the ILocaleInstance interface expected by Origam. Bridges vue-i18n's translation, number formatting, and locale management with the DS locale system.
API
Signature
Full TypeScript signature sourced from the util file.
API
Parameters
Input parameters accepted by this util.
- {i18n, useI18n}requiredILocaleI18n
API
Return value
The value returned by this util.
- An ILocaleInstance that Origam components consume for translations and locale context.
Usage
Examples
Ready-to-paste usage snippets.
Register the adapter in a Nuxt / Vue 3 app