web-i18n-vue-i18n
Installation
SKILL.md
vue-i18n Internationalization Patterns
Quick Guide:
createI18n({ legacy: false })selects Composition API mode, anduseI18n()returnstfor messages,dfor dates,nfor numbers andlocaleas a writable ref. Plurals are pipe-separated rather than ICU.<i18n-t>,<i18n-d>and<i18n-n>put components and styling inside a formatted result. Version boundary: Legacy API mode, thev-tdirective and the Rails%{var}format are deprecated in v11 and removed in v12;$tc()is already gone.
Detailed Resources:
- examples/core.md — setup, useI18n, interpolation, linked messages, plurals,
<i18n-t>/<i18n-d>, types, locale switching - examples/formatting.md — datetime and number format configuration,
<i18n-d>/<i18n-n>scoped slots, dynamic currency - examples/lazy-loading.md — dynamic imports, loading before render, feature splitting, retry and fallback, SSR-safe detection
- reference.md — decision trees, anti-pattern code, checklists, plural-rule tables, v8→v9 migration and v11/v12 removals