Shared utility scripts for quarkus.io localization repositories
Build the localized quarkus site. The site is saved in the <L10N_HOME>/docs
directory.
<QARKUS_L10N_UTILS_HOME>/bin/build
Upstream source files are updated time to time. This command extract sentences from the source files and update the corresponding .po files.
<QARKUS_L10N_UTILS_HOME>/bin/update-po-files
Translate .po file entries with tmx, which stores sentences that have previously been translated.
<QARKUS_L10N_UTILS_HOME>/bin/translate-po-files-with-tmx
Translate .po file entries with DeepL API.
export TRANSLATOR_DEEPL_APIKEY=<your API key>
<QARKUS_L10N_UTILS_HOME>/bin/translate-po-files-with-deepl
Sometime source files are removed in the upstream. This command sweeps the orphaned obsolete .po files.
<QARKUS_L10N_UTILS_HOME>/bin/remove-obsolete-po-files
DeepL API offers glossary support, which enables to specify how words and phrases are translated. These commands help to manage DeepL glossary.
Create a new glossary by uploading <L10N_HOME>/l10n/glossary/glosary.csv
<QARKUS_L10N_UTILS_HOME>/bin/create-glossary
List glossaries. This can be used to identify glossary id
<QARKUS_L10N_UTILS_HOME>/bin/list-glossaries
Delete a specified glossary
<QARKUS_L10N_UTILS_HOME>/bin/delete-glossary --glossaryId=<glossaryId>