Technical & DevelopmentIntermediate
azure-ai-translation-text-py
Real-time text translation
Developer Setup
Setup & Installation
bash
npx skills add https://github.com/microsoft/skills --skill azure-ai-translation-text-pynpx skills add https://github.com/microsoft/skills --skill azure-ai-translation-text-pyOr paste this URL into your assistant to install:
Overview
What This Skill Does
Azure AI Text Translation SDK for Python wraps the Azure Translator REST API. It handles real-time translation across 100+ languages, script transliteration, language detection, dictionary lookups, and sentence boundary detection.
Application
When to use this Skill
- Configuring integration settings for custom agent workflows.
- Optimizing query execution and response latency in production.
- Developing clean, standard-compliant implementations for enterprise services.
- Troubleshooting connection timeouts and authentication handshakes.
- Monitoring API rate limits and execution pipelines programmatically.
Documentation
Show Skills.md file
Azure AI Text Translation SDK for Python
Client library for Azure AI Translator text translation service for real-time text translation, transliteration, and language operations.
Installation
pip install azure-ai-translation-text
Environment Variables
AZURE_TRANSLATOR_ENDPOINT=https://<resource>.cognitiveservices.azure.com # Required for Entra ID auth (must be a custom subdomain endpoint)
AZURE_TOKEN_CREDENTIALS=prod # Required only if DefaultAzureCredential is used in production
# Only required for the legacy API-key auth path below:
AZURE_TRANSLATOR_KEY=<your-api-key>
AZURE_TRANSLATOR_REGION=<your-region> # e.g., eastus, westus2; required when authenticating with a key against the global endpoint
Authentication & Lifecycle
🔑 Two rules apply to every code sample below:
- Prefer
DefaultAzureCredential. It works locally (Azure CLI / VS Code / Developer CLI) and in Azure (managed identity, workload identity) with no code change. Avoid connection strings, account/API keys — they bypass Entra audit and rotation.
Lines 1 - 25 of 288
Recommendations
Explore other random skills
TechnicalIntermediate
sentry-code-review
Review code changes using Sentry issue and trace context
TechnicalIntermediate
sentry-fix-issues
Find and fix Sentry issues with stack trace, breadcrumb, and trace context via MCP
TechnicalIntermediate
sentry-pr-code-review
Review PR comments from Seer Bug Prediction and Sentry feedback