# @intlify/vue-i18n/no-unknown-locale
disallow unknown locale name
# 📖 Rule Details
This rule reports the use of unknown locale names.
By default, this rule only commonly known locale names specified in RFC 5646 (opens new window) are allowed. The rule uses the is-language-code (opens new window) package to check if the locale name is compatible with RFC 5646 (opens new window).
# ⚙️ Options
{
"@intlify/vue-i18n/no-unknown-locale": [
"error",
{
"locales": [],
"disableRFC5646": false
}
]
}
locales
... Specify the locale names you want to use specially in an array. The rule excludes the specified name from the check.disableRFC5646
... Iftrue
, only the locale names listed inlocales
are allowed.
# 🚀 Version
This rule was introduced in @intlify/eslint-plugin-vue-i18n
v1.3.0