alefragnani / vscode-separators

Separators Extension for Visual Studio Code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[FEATURE] - Add translation to Simplified Chinese

Stehsaer opened this issue · comments

I hope to add Simplified Chinese language support for this extension, and I need some more info about how to add a translation.

Hi @Stehsaer ,

There are up to three different resources to be translated in VS Code extensions, and the Separators extension uses only two:

  • package.nls.xxx.json: commands, menus and settings
  • ./l10n/bundle.l10n.xxx.json: messages and other strings located inside the source code

an oficial sample is located here https://github.com/microsoft/vscode-extension-samples/tree/main/l10n-sample

Simply create a new file named with the language-id you want (instead of the xxx), on the same location.

Follow the CONTRIBUTING.md file to know how to build and debug the extension, in order to test your translation.

Hope this helps

Is it correct that, what I need to do is:

  1. Fork the repos based on the main branch and create a new branch in the forked repos
  2. Create new localization files and commit
  3. Create a pull request

I'm quite new to contributing in GitHub.

Yes, it is correct, and your PR was already merged

Thank you

Literally, my first ever contribution to a public repository. Thanks for your guidance and also for creating this extension!

You did great! And I'm glad to know you like the extension.