Skip to content

@intlify/vue-i18n/prefer-sfc-lang-attr

require lang attribute on <i18n> block

  • ✒️️ The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule enforce lang attribute to be specified to <i18n> custom block.

👎 Examples of incorrect code for this rule:

locale messages:

👍 Examples of correct code for this rule:

locale messages:

🚀 Version

This rule was introduced in @intlify/eslint-plugin-vue-i18n v1.2.0

🔍 Implementation