-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
HELP WANTED: Add internationalization (i18n) support to GitLens #577
Comments
I have tried to implement i18n with Then encountered a lot of difficulties I found that here we go: 1. We have to use If we need to modify the translation file, we need to log in This undoubtedly prevents developers from further contributing to translation. In order to integrate We have to use 2. How to write i18n file? 3. What did this function do? That's all! This is my experience after trying to use I I disapprove follow Here is my solution for easy use: |
While I agree that the official i18n sample is seemingly over complicated and the documentation is not very clear, the Also will the files that have the localized strings be in the same format in what you are proposing vs |
The examples you've posted are full extensions -- what are the pieces (and dependencies if any) that would be brought into GitLens? |
But the official i18n example uses it. If you use The examples I've posted is the solution. not a library. localized strings format same with official solution You can see here: English by default: Chinese Simplified |
OK, sounds good -- thanks for the information. FYI, will also need to make sure the solution works well with webpack -- which will likely mean avoiding the use of |
Yes, the project must have the translation files. Add copyPlugin to webpack to copy the translation file to the dist directory. Because there is too much place to translate. I suggest that the first stage of the translation of the command / configuration just fine. |
@axetroy works for me! Thanks again! Looking forward to the PR |
@eamodio This will take a lot of time due to a large number of configuration items. PR is coming soon... |
Actually,there is a more convenient way to implement i18n. Microsoft already has a tool called vscode-nls-dev , this tool automates the extraction of strings to be externalized from TS and JS code. And you can also add localization using Transifex. |
@chouzz PR is very welcome 😄 |
@chouzz are you working on this? If not, I'd take a look. |
If you do add localization, please do so through Crowdin |
Quick update: I almost finshed a basic i18n system that uses vscode-nls-dev / webpack, but unfortunately I was quite occupied with other things in the last weeks. I hope to finish it next week. vscode-nls-dev does not necessarily require a localization platform like Transifex (or Crowdin). In the most basic version one could just edit the json files that contain translations, and that is how my PR will work. I suggest that selecting and implementing the usage of a platform should follow in a separate PR. |
Editing json files directly through a PR is definitely not an ideal option. If you want many users helping out you will need to set up a Crowdin project otherwise the idea will most likely die pretty fast |
@ImRodry Yes, I am not saying that this project shouldn't use Crowdin or something comparable. I wanted to say that it is the second step and therefore should only be done after the first step - implementing vscode-nls-dev - is finished. |
But I think it should all be put in the same PR since the only thing crowdin needs is a crowdin.yml file on the repo and the rest is handled by the managers of the project on Crowdin itself. The configuration file should also be pretty simple |
非常希望能得到本地化的支持,这个插件非常棒 |
Hey everyone! Do we have an update on this topic? I'm just looking around, maybe I can help with this! |
Just FYI, I've made a pull request introducing i18n support. I expect it may take some time until it can be approved and merged. |
@eamodio 我为它等了太久了,有什么能帮忙的吗😂 |
Now can use l10n to support other language |
Excuse me, how is the progress, looking forward to supporting multiple languages as soon as possible |
I'm also looking forward to support for Chinese! |
Here is a sample extension using the vscode-nls library
The text was updated successfully, but these errors were encountered: