Integrér dine Visual Studio Code-projekter med Crowdin for at optimere lokaliseringsprocessen. The plugin allows uploading source strings instantly to your Crowdin project, downloading source strings from Crowdin, and downloading completed translations.
Når Crowdin-plugin’et er installeret, vil Crowdin Explorer blive vist i Visual Studio Codes aktivitetsbjælke som en ny komponent. The plugin scans each workspace for a Crowdin-specific configuration file and builds a tree with the source files. Brug Crowdin Explorer til at håndtere lokaliseringsressourcer og automatisere filsynkning. Oversættelses- og korrekturlæsningsfremskridt kan også spores for hvert projekt og målsprog.
To work with the Crowdin plugin in the Visual Studio Code workspace, you need to create a Crowdin configuration file named crowdin.yml or crowdin.yaml.
Opsætningsfileksempel:
"project_id": "projectId" #open project and go to Tools > API "api_token": "apiToken" #open profile settings and go to API > New Token > create Token "base_path": "folder" #optional "branch": "master" #optional
"files": [
{ "source": "/sources/**/*.xml", "translation": "/translations/%two_letters_code%/%original_file_name%", "update_option": "update_as_unapproved", #valgfrit "excluded_target_languages": ["uk", "fr"], #valgfrit "labels": ["android", "emails"] #valgfrit },
{
"source": "multicolumn.csv",
"translation": "multicolumn.csv",
"scheme": "identifier,source_phrase,context,uk,ru,fr" #optional
}
]
Miljøvariablerne kan også bruges i opsætningsfilen.
Read more about Environment Variables.
Følg disse trin for at opsætte Crowdin Plug-in’et til VS Code:
crowdin.yml
- eller crowdin.yaml
-opsætningsfilen og føj den til det ønskede arbejdsområde i Visual Studio Code.ext install Crowdin.vscode-crowdin
Denne udvidelse tillader opsætning af flg. indstillinger:
tms.autoRefresh
– use this option to auto-refresh the file tree after each change in the Crowdin configuration file.