Skip to content

@intlify/vue-i18n/no-dynamic-keys

disallow localization dynamic keys at localization methods

This rule warns localization dynamic keys.

This role is useful for unifying all static keys in your application.

📖 Rule Details

You can be detected with this rule the following:

  • $t
  • t
  • $tc
  • tc
  • v-t
  • <i18n>

👎 Examples of incorrect code for this rule:

locale messages:

json
{
  "hello": "Hello! DIO!"
}

localization codes:

👍 Examples of correct code for this rule:

locale messages:

json
{
  "hello": "Hello! DIO!"
}

localization codes:

🚀 Version

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

🔍 Implementation