skills.vishalvoidskills/vishalvoid
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-py

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

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:

  1. 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

All skillsMy patterns