This repository contains a PowerShell script that automates the translation of XLF files using the Azure Cognitive Services Translator API. The script reads an Italian XLF file, maps the translations, and updates other XLF files with the corresponding translations.
- PowerShell
- Azure Cognitive Services Translator API subscription
- XLF files in the
./Translationsfolder - [NAB AL Tools] Visual Studio Code extension
- Clone the repository to your local machine.
- Navigate to the repository directory.
- Replace the placeholders in the script (
XLF-AI-Translator.ps1) with your actual Azure API subscription key and category ID.
$subscriptionKey: Your Azure Cognitive Services subscription key.$location: The region of your Azure Cognitive Services instance (e.g., "westeurope").$categoryId: The custom translator category ID.
To improve translation quality, it is recommended to train the AI with the base translations from Microsoft Dynamics 365 Business Central in the target language. This will ensure that the terminology and context are consistent with Business Central standards.