- Add a Nuget dependency on SIL.Chorus.l10ns to the project where you initialize the L10nSharp
LocalizationManager
- Add a build step to copy the Chorus.%langcode%.xlf files to the correct folder in your project
On each commit to master
, a GitHub Action runs to
- Download the current
Chorus.en.xlf
from Crowdin. (L10NSharp.ExtractXliff version 7.0.0-beta0011 fails to extract all strings, as not all are internationalized. Merging into the existing file is easier than fixing 195 uninternationalized strings.) - Extract all internationalized strings from all Chorus projects to
Chorus.en.xlf
- Upload Chorus.en.xlf to Crowdin
See ../.github/workflows/l10n-source.yml
It can also be run manually as follows (requires the Crowdin CLI):
crowdin download sources -T CROWDIN_ACCESS_TOKEN
msbuild l10n.proj /t:UpdateCrowdin
crowdin upload sources -T CROWDIN_ACCESS_TOKEN
This process is run by a github action whenever a version tag is pushed and manually as needed
(See ../.github/workflows/l10n-packaging.yml
)
It can also be run manually as follows (requires the Crowdin CLI):
crowdin download --all -T CROWDIN_ACCESS_TOKEN
msbuild l10n.proj /t:PackageL10ns
nuget push -ApiKey TheSilNugetApiKey SIL.Chorus.l10n.nupkg