Crowdin for VS CodeIntegrate 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. FeaturesA 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. Upload source files to CrowdinUpload source files to Crowdin for translation using the "Upload" panel. It displays all the source files matching the specified pattern in the configuration file. You can either individually select files to upload to Crowdin or upload all files at once. Download source and translation files from CrowdinDownload source and translation files from Crowdin using the "Download" panel. It displays all the source files matching the specified pattern in the configuration file. You can download translations for all target languages as well as download source files edited in Crowdin. Track translation progressTrack progress of translated and approved strings for each project and target language. String keys autocompletionUse 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. String extractionThe plugin allows you to extract strings from your source files and upload them to Crowdin. Just select the necessary text and use the Command Palette commandsThe plugin provides the following commands in the VS Code Command Palette (Shift+Command+P/Ctrl+Shift+P):
SetupInstallationInstall the Crowdin plugin using one of the following methods:
Authorization via browserRun the following commands to prepare workspace:
Manual setup
ConfigurationTo 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:
Extension SettingsThis extension contributes the following settings:
LimitationsAt 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. Seeking AssistanceIf you find any problems or would like to suggest a feature, please read the How can I contribute section in our contributing guidelines. ContributingWe are happy to accept contributions to the Crowdin Visual Studio Code Plugin. If you want to contribute, please read the Contributing guidelines. LicenseThe 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. |