You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All localization files are under the i18n folder.
You could have created this folder by hand, or you could have used the vscode-nls-dev tool to extract it.
Under the i18n folder, you have sub-folders that represent the language you want to localize. These names follow the ISO 639-3 convention.
Does this have to be created by hand, or can be this automated as described above or you could have used the vscode-nls-dev tool to extract it.
Q2. Please could you provide an example.
If you have a top-level package.nls.json file in your extension, you should have one for each language following the naming convention of package.i18n.json.
The text was updated successfully, but these errors were encountered:
Regarding Q1: none of your tools force to use a special translation platform. So it is up to you to decide how these strings are translated. All the tooling does is to assume that there is a i18n folder with sub folder per language were the folder name uses ISO 639-3 convention. Underneath these folders the directory structures is the same as for the source code. If you are using Transifex to translate the project then vscode-nls-dev provides gulp functions to automatically push and pull to Transifex honoring the directory structure. If you choose to use your own translation platform you need to write your own import / export scripts. See https://github.com/Microsoft/vscode-node-debug2.git for an example that uses Transifex.
I posted a similar question to StackOverflow, and after figuring it out (using the above comment) added a step-by-step (ish) guide to getting the i18n-sample working.
@dbaeumer
Q1. Looking at the sample https://github.com/Microsoft/vscode-extension-samples/tree/8fb95dc0f72c067579c9aaa63c88129781bebb43/i18n-sample, I'm struggling to understand how the i18n folder structure is created.
Does this have to be created by hand, or can be this automated as described above
or you could have used the vscode-nls-dev tool to extract it.
Q2. Please could you provide an example.
The text was updated successfully, but these errors were encountered: