Vue · i18n

VUE0002Disallow unused translations

Flags unused translations in Vue i18n code before it leaks into runtime behavior.

Why it happens

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.

Fix

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"
}

Verify the fix

Run only this rule after editing so the report stays focused on the diagnostic you are closing:

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