Integrate your Visual Studio Code projects with Crowdin to streamline the localization process. The plugin allows you to instantly upload new source strings to your Crowdin project, autocomplete string keys, check translation progress and download translations from Crowdin.
A new component will be introduced in the Activity Bar called the Crowdin. The plugin will scan each workspace for a Crowdin-specific configuration file and will build a tree with source files.
Sources and translations sync, tracking project progress
With this plugin you can:
String keys autocompletion
Use string keys in your code fetched from Crowdin and available in autocomplete suggestions. Whenever a user types something, the VSCode autocompletion will suggest available string keys from Crowdin.
There is a possibility to configure file extensions, where the string keys autocompletion will appear. By default, autocompletion is turned on and available in all files.
Strings for autocompletion are loaded during the bootstrap of VSCode and are also updated whenever there was a change in the
This gif illustrates the autocompletion of string keys in a React project that uses the Lingui library.
Install the Crowdin plugin using one of the following methods:
Authorization via browser
Run the following commands to prepare workspace:
To work with the plugin in the Visual Studio Code workspace, there should be a Crowdin configuration file called either
You can create a new configuration file by using the "Crowdin: Create configuration" command in the VS Code Command Palette (Shift+Command+P/Ctrl+Shift+P).
Configuration file example:
All supported options:
Tip: You don't need to specify the
You can also use environment variables in the configuration file Environment variables:
This extension contributes the following settings:
At the moment, the plugin does not support all possible properties in the configuration file (see Configuration file). All properties which are supported by this plugin are listed in the example above.
If you find any problems or would like to suggest a feature, please read the How can I contribute section in our contributing guidelines.
We are happy to accept contributions to the Crowdin Visual Studio Code Plugin. If you want to contribute, please read the Contributing guidelines.
The Crowdin Visual Studio Code Plugin is licensed under the MIT License. See the LICENSE file distributed with this work for additional information regarding copyright ownership. Except as contained in the LICENSE file, the name(s) of the above copyright holders shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization.