Vue · VUE0002

Disallow unused translations

Flags unused translations in Vue i18n code before it leaks into runtime behavior.
VUE0002vite-doctor/vuei18nwarnNo fix
vue/i18n/no-unused-translationssrc/rule-packs/vue/rules/vue/i18n.ts

Run this rule

pnpm vite-doctor . --framework vue --rules vue/i18n/no-unused-translations

Why it matters

Vue gives this pattern a specific contract. Staying inside that contract makes the code easier to test, refactor, and run across server and client runtimes.

Remove unused translations, or move it to the Vue runtime/API that owns that behavior.

Example

Remove unused translations

Before

{
  "used": "Save",
  "unused": "Delete"
}

After

{
  "used": "Save"
}
Copyright © 2026