DavidAnson / vscode-markdownlint

Markdown linting and style checking for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint
MIT License
894 stars 166 forks source link

feat: Can we update support for multiple languages? #340

Open you-hengh opened 1 month ago

you-hengh commented 1 month ago

Hello developers!

I am a Chinese user. I have been publishing articles using the markdown format for more than 2 years. I recently learned about this plug-in. It is very helpful in formatting markdown files. , the only regret is that the error message is not in Chinese, and you have to use translation software to check the content of the warning every time.

As mentioned above, I hope that the plugin can improve my or more Chinese users' writing efficiency by supporting Chinese. If allowed, I can help translate the plugin's warning messages, or developers can generate Chinese warnings separately through the i18n configuration. I can provide help with translation, but I don't know what content needs to be translated.

If it is convenient, you can take a screenshot to inform me which files need to be translated and where the translated files are stored. Can I try to submit a pull request?

DavidAnson commented 1 month ago

Interesting! I need to think about how I'd do this. If there are any similar tools that support translations today (ESLint? ava? Prettier?), please let me know and I will look at what they've done.

DavidAnson commented 1 month ago

To be clear, language support would start with the markdownlint library, then go into markdownlint-cli2, and then go into vscode-markdownlint.

you-hengh commented 1 month ago

To be clear, language support would start with the markdownlint library, then go into markdownlint-cli2, and then go into vscode-markdownlint.

In fact, I am using eslint and prettier plugins, a plugin commonly used by Chinese vscode users Chinese (Simplified) (简体中文) Language Pack for Visual Studio Code

And I'm still using this plugin Error Lens It can conveniently display error warnings next to the code, improving work efficiency

With the help of these plugins, my eslint and prettier warning messages here are all in Chinese, I don't know if this will help you.

DavidAnson commented 1 month ago

The description for that first plug-in you link to seems to be specific to VS Code. Are you saying that it also localizes third-party extensions like ESLint and Prettier? If so, could the same approach be applied here?

DavidAnson commented 1 month ago

Researching briefly, I do not see evidence of localization in the ESLint CLI. Here is an example where it writes English directly to the console: https://github.com/eslint/eslint/blob/04e7c6e0a24bd2d7691ae641e2dc0e6d538dcdfd/bin/eslint.js#L143

you-hengh commented 1 month ago

The description for that first plug-in you link to seems to be specific to VS Code. Are you saying that it also localizes third-party extensions like ESLint and Prettier? If so, could the same approach be applied here?

To be honest, I'm not sure about this. I'm just a user. Maybe I need to learn the development of the plugin to see if it can support i18n?