Integrate your Visual Studio Code projects with Crowdin Enterprise to optimize the localization process. The plugin allows uploading source strings instantly to your Crowdin Enterprise project, downloading source strings from Crowdin Enterprise, and downloading completed translations.
Once you install the Crowdin plugin, the Crowdin Explorer will appear in the Visual Studio Code’s Activity Bar as a new component. The plugin scans each workspace for a Crowdin Enterprise-specific configuration file and builds a tree with the source files. Use Crowdin Explorer to manage your localization resources and automate file synchronization. Also, you can track translation and proofreading progress for each project and target language.
To work with the Crowdin plugin in the Visual Studio Code workspace, you need to create a Crowdin Enterprise configuration file named crowdin.yml or crowdin.yaml.
Пример файла конфигурации:
"project_id": "projectId" #open project and go to Tools > Command line tool (CLI) "api_token": "apiToken" #open project and go to Tools > Command line tool (CLI) "base_path": "folder" #optional "base_url": "https://{organization-name}.crowdin.com" "branch": "master" #optional
"files": [
{ "source": "/sources/**/*.xml", "translation": "/translations/%two_letters_code%/%original_file_name%", "update_option": "update_as_unapproved", #optional "excluded_target_languages": ["uk", "fr"], #optional "labels": ["android", "emails"] #optional },
{
"source": "multicolumn.csv",
"translation": "multicolumn.csv",
"scheme": "identifier,source_phrase,context,uk,ru,fr" #optional
}
]
You also can use the environment variables in the configuration file.
Read more about Environment Variables.
Follow these steps to setup Crowdin Plugin for Visual Studio Code:
crowdin.yml
or crowdin.yaml
configuration file and add it to the needed workspace in Visual Studio Code.ext install Crowdin.vscode-crowdin
This extension allows you to configure the following settings:
tms.autoRefresh
– use this option to auto-refresh the file tree after each change in the Crowdin Enterprise configuration file.