Al translation phase
Skill hyzaDan/copilot-al-configs/skills/al-translation-phase
Guides the AL translation phase — when to translate, how to handle XLF files, and quality expectations for localized texts.From its SKILL.md
npx -y skills add hyzaDan/copilot-al-configs --skill al-translation-phaseAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- no licenseNo license file was found in the repository. Code published without one is not open source by default, so using it at work is a question for whoever answers licensing questions where you are.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
SKILL.md
2.9 KB, as published. Nobody here has run it
Translation Phase
Use this skill after implementation and core review are complete and the app builds successfully.
Purpose
- separate translation from implementation so that code is stable before localizing
- guide XLF synchronization, batch translation, and quality validation
- define when and how to invoke the
al-translatoragent or perform translation manually
When to translate
- only after a successful build that produced an up-to-date
.g.xlffile - never during active implementation or while the code is still under review
- when the
al-develop-orchestratoror user explicitly triggers the translation phase
Translation workflow summary
- Build the app (
al_buildorbuildAlPackage) to generate the current.g.xlf. - For each target language XLF file in
Translations/: a. Synchronize withrefreshXlf. b. Load glossary (glossary.tsv+getGlossaryTerms). c. Load existing translations as style reference (getTranslatedTextsMap). d. Fetch untranslated texts in batches of up to 100 (getTextsToTranslate). e. Translate, validate, and save each batch (saveTranslatedTexts). f. Repeat until no untranslated texts remain. g. FinalrefreshXlfto confirm completion. - Report a per-language summary and list challenging translations for review.
Translation quality rules
- preserve all placeholders (
%1,%2) in position and format - preserve formatting, special characters, XML tags, and backslashes
- respect
maxLengthconstraints — measure and shorten before saving - do not copy source text as translation unless justified (proper noun, universal abbreviation, technical term)
- apply glossary terms exactly when they match
- keep translated texts free of project suffixes, affixes, or workspace identifiers
- maintain consistency with existing translations in the project
Available NAB AL Tools
refreshXlf— sync XLF with generated.g.xlfgetTextsToTranslate— fetch untranslated textssaveTranslatedTexts— save translations with stategetTranslatedTextsMap/getTranslatedTextsByState— existing translationsgetGlossaryTerms— glossary for target languagegetTextsByKeyword— search texts by keywordbuildAlPackage— compile and generate.g.xlf
When NAB tools are unavailable
Fall back to direct XLF file editing:
- open the target XLF file
- locate
<trans-unit>elements without<target>or withstate="needs-translation" - add or update
<target>elements with the translation - set
state="needs-review-translation"on new translations
Related agents
al-translator— the dedicated translation worker that executes this workflowal-develop-orchestrator— triggers the translation phase after successful build