Skip to main content

Challenge 17: Language Translation

Estimated Time

20-30 min | Cost: Free | Domain: Natural Language Processing (15-20%)

Exam skills covered

  • Identify features and uses for translation
  • Identify Azure AI Language service capabilities

Overview

Azure AI Translator is a cloud-based service that translates text between 100+ languages in real time. It powers scenarios from simple text translation to complex document translation while preserving the original formatting. The service uses neural machine translation (NMT), which produces more fluent and natural-sounding translations than older statistical methods.

Translation in Azure comes in several forms. Text translation handles individual strings or batches of text via API calls. Document translation processes entire documents (PDF, Word, PowerPoint, etc.) while maintaining their original layout, styles, and formatting. Custom Translator lets organizations build domain-specific translation models trained on their own terminology — essential for industries like legal, medical, or manufacturing where generic translation may not handle specialized vocabulary correctly.

Azure also provides speech translation, part of the Azure AI Speech service, which translates spoken audio from one language to another in real time. This enables scenarios like live multilingual meetings and real-time conversation translation between people speaking different languages.

Explore

Task 1: Understand translation capabilities

Azure provides multiple translation approaches for different scenarios:

CapabilityServiceUse Case
Text translationAzure AI TranslatorTranslate UI strings, chat messages, short text
Document translationAzure AI TranslatorTranslate PDFs, Word docs while keeping formatting
Custom TranslatorAzure AI TranslatorDomain-specific translation (legal, medical terms)
Speech translationAzure AI SpeechReal-time spoken language translation

Task 2: Explore supported languages

Navigate to: learn.microsoft.com/azure/ai-services/translator/language-support

  1. Notice the 100+ supported languages
  2. Observe that not all features support all languages:
    • Text translation: broadest language support
    • Document translation: slightly fewer languages
    • Transliteration: converts script (e.g., Japanese Kanji → Latin characters)
  3. Some languages support translation in both directions; others may be one-way only

Key language features:

FeatureDescriptionExample
TranslationConvert text from one language to anotherEnglish → Spanish
TransliterationConvert text from one script to anotherHindi (Devanagari → Latin)
Language detectionIdentify source language automaticallyAuto-detect before translating
Dictionary lookupGet alternative translations for a word"bank" → "banco" (financial) or "orilla" (riverside)

Task 3: Try the Translator demo

Navigate to: azure.microsoft.com/products/ai-services/ai-translator

Or try the Azure AI Translator demo in the portal to see:

  1. Real-time text translation between languages
  2. Auto-detection of source language
  3. Multiple target languages from a single source

Sample translation flow:

Input: "Cloud computing delivers IT resources over the internet."
Source: English (auto-detected)
Target: Spanish → "La computación en la nube ofrece recursos de TI a través de internet."
Target: French → "L'informatique en nuage fournit des ressources informatiques via Internet."
Target: Japanese → "クラウドコンピューティングは、インターネットを通じてITリソースを提供します。"

Task 4: Understand Custom Translator

Custom Translator is used when generic translation isn't good enough for specialized domains:

ScenarioWhy custom translation helps
Medical recordsStandard translation may not handle drug names, procedures, or anatomical terms correctly
Legal contractsLegal terminology has precise meanings that generic translation might miss
Manufacturing manualsProduct-specific terms and technical jargon need consistent translation
Gaming localizationBrand names, character names, and fantasy terms need preservation

How Custom Translator works:

  1. Upload parallel documents (same content in source and target language)
  2. The service trains a customized model using your terminology
  3. Deploy the custom model and call it like standard translation
  4. Minimum requirement: 10,000 parallel sentences for best quality

Your task: Think of a domain you work in. What specialized terms might a generic translator get wrong?

Azure CLI Alternative
# Create a Translator resource (Free tier - 2M characters/month)
az cognitiveservices account create \
--name my-translator-resource \
--resource-group myResourceGroup \
--kind TextTranslation \
--sku F0 \
--location global

Key Concepts

ConceptDefinition
Neural machine translationAI-based translation that produces natural, fluent translations using deep learning
Text translationTranslating individual text strings or batches between languages via API
Document translationTranslating entire documents while preserving formatting and layout
Custom TranslatorBuilding domain-specific translation models trained on your own parallel data
TransliterationConverting text from one script to another (e.g., Cyrillic to Latin)
Speech translationReal-time translation of spoken audio from one language to another

Common Misconceptions

MisconceptionReality
Machine translation is always perfectTranslation quality varies by language pair and domain; specialized content may need custom models
You must specify the source languageAzure AI Translator can auto-detect the source language — you only need to specify the target
Document translation loses all formattingDocument translation specifically preserves the original layout, styles, and formatting
Custom Translator requires millions of examplesIt can produce useful results with as few as 10,000 parallel sentences, though more data improves quality
Translation and transliteration are the sameTranslation changes meaning between languages; transliteration changes script while keeping the same language

Knowledge Check

1. A company needs to translate 500 PDF contracts from English to German while keeping the original formatting intact. Which capability should they use?

2. What is the purpose of transliteration in Azure AI Translator?

3. A pharmaceutical company finds that standard translation mishandles drug names and medical procedures. What should they implement?

4. Which Azure service provides real-time spoken language translation during a multilingual meeting?

5. When using Azure AI Translator for text translation, what happens if you do not specify the source language?

Learn More