Skip to content
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

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

Open
you-hengh opened this issue May 8, 2024 · 6 comments
Open

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

you-hengh opened this issue May 8, 2024 · 6 comments

Comments

@you-hengh
Copy link

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
Copy link
Owner

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
Copy link
Owner

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

@you-hengh
Copy link
Author

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
Copy link
Owner

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
Copy link
Owner

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
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants