microsoft/vscode-loc
Publicmirrored fromhttps://github.com/microsoft/vscode-locAvailable
i18n/vscode-language-pack-de/vsc-extension-quickstart.md
26lines · modecode
| 1 | # Welcome to the German language pack |
| 2 | |
| 3 | ## What's in the folder |
| 4 | * `package.json` - the manifest file, defining the name and description of the localization extension. It also contains the `localizations` contribution point that defines the language id: |
| 5 | ```json |
| 6 | "contributes": { |
| 7 | "localization": [{ |
| 8 | "languageId": "de", |
| 9 | "languageName": "German", |
| 10 | "localizedLanguageName": "Deutsch" |
| 11 | }] |
| 12 | } |
| 13 | ``` |
| 14 | * `translations` - the folder containing the translation strings |
| 15 | |
| 16 | |
| 17 | To populate or update the `translations` folder as with the latest strings from transifex: |
| 18 | - Check out the `master` branch of the [VS Code repository](https://github.com/Microsoft/vscode). |
| 19 | - Preferably, place the VSCode repo next to the language pack extension (so both have the same parent folder). |
| 20 | - `cd vscode` and run `yarn` to initialize the VS Code repo. |
| 21 | - Get an API token from https://www.transifex.com/user/settings/api. |
| 22 | - Set the API token to the environment variable `TRANSIFEX_API_TOKEN`. |
| 23 | - `cd` to the VS Code repo |
| 24 | - If the language pack extension is placed next to the VS Code repository: `npm run update-localization-extension de` |
| 25 | - Otherwise: `npm run update-localization-extension {path_to_lang_pack_ext}` |
| 26 | - This will download translation files to the folder `translations`, as well as populate a `translations` property in the `localizations` contribution point. |