Skip to content

@intlify/vue-i18n/no-missing-keys-in-other-locales

disallow missing locale message keys in other locales

This rule warns if a key with the same path as the key of resource does not exist in another locale.

📖 Rule Details

👎 Examples of incorrect code for this rule:

locale messages:

👍 Examples of correct code for this rule:

locale messages:

⚙️ Options

json
{
  "@intlify/vue-i18n/no-missing-keys-in-other-locales": [
    "error",
    {
      "ignoreLocales": []
    }
  ]
}
  • ignoreLocales: If you specify an array of locales, that locale is allowed even if it is missing.

🚀 Version

This rule was introduced in @intlify/eslint-plugin-vue-i18n v0.10.0

🔍 Implementation