We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
settings.vue-i18n.localeDir
Tell us about your environment
The problem you want to solve. I have this structure of locales:
import layerBase from '@frontend/nuxt-layer-base/assets/locales/en'; import main from './main.json'; import errors from './errors.json'; import views from './views.json'; import misc from './misc.json'; export default { ...main, errors, views, misc, 'layer-base': layerBase, };
In .eslintrc.json:
{ // ... "settings": { "vue-i18n": { "localeDir": "./locales/**/*.json", "messageSyntaxVersion": "9.3.0-beta.16" } } }
And I want to use @intlify/vue-i18n/no-missing-keys rule.
Your take on the correct solution to problem. Maybe:
{ // ... "settings": { "vue-i18n": { "localeDir": [ "./locales/**/main.json", { "pattern": "./locales/**/errors.json", "keyPrefix": "errors" }, { "pattern": "./locales/**/misc.json", "keyPrefix": "misc" }, { "pattern": "./locales/**/views.json", "keyPrefix": "path" } ], "messageSyntaxVersion": "9.3.0-beta.16" } } }
Or:
{ // ... "settings": { "vue-i18n": { "localeDir": [ "./locales/**/main.json", { "pattern": "./locales/**/*.json", "keyPrefix": true }, ], "messageSyntaxVersion": "9.3.0-beta.16" } } }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Tell us about your environment
The problem you want to solve.
I have this structure of locales:
In .eslintrc.json:
And I want to use @intlify/vue-i18n/no-missing-keys rule.
Your take on the correct solution to problem.
Maybe:
Or:
The text was updated successfully, but these errors were encountered: