-
-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
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
The same warning message occurs many times #79
Comments
It is actually not true. The messages are still there after changing to |
Upgraded to 0.6.0 If I have an incorrect key I got the following message:
Please note all those messages are related to the same line
If I fix the resource path with the correct one 'Core.Strings.Login' the output is follows:
My file 'Core.Strings.json' looks like that:
The settings:
|
I am not sure about the i18n syntax but I think it would be nice to have a json in the following format (and it could be optional):
It is actually the same like:
Why do I have many files for the same language,
|
Thank you for this issue! Currently this plugin's locale message resources analysis is based on using the defaults of The reference source code is as follows: If we accept various formats, it will be impossible to analyze with the But even now, you might be able to solve your problem by writing a
e.g. let result = {};
result = merge(result, require('../path/to/resource01.json'));
result = merge(result, require('../path/to/resource02.json'));
result = merge(result, require('../path/to/resource03.json'));
// ...
module.exports = result;
settings: {
'vue-i18n': {
localeDir: {
pattern: 'path/to/merging-resources.js',
localeKey: 'key' // or 'file'
}
}
} Notes: rules that validate JSON files, such as |
If PR #35 is merged and released, I think it's smarter to use the settings added by that PR. |
If #35 was merged and released, you may need to change the settings, but now that the your problem seems to be resolved, so I close this issue. |
Seems all issues are gone after upgrading to 0.9.0. Thank you guys. |
Version: 0.5.0
The same error with the same code line occurs 18 times:

Related only to no-missing-keys rule.
if I fix
Core.Strings.Login2
to existingCore.Strings.Login
the all 18 messages are gone.config:
my src/i18n/ folder:

the loader
i18n.ts
:.json:
Usage
Login.vue
:The text was updated successfully, but these errors were encountered: