Dev & Engineering ✓ Microsoft · Official azure-translationtypescripttext-translationdocument-translationtransliterationlanguage-detection

Azure Translation for TypeScript

Build TypeScript applications for text translation, transliteration, language detection, and document translation.

FollowSkills review · FSRS-2.0
Use with care
50/ 100 5-point scale 2.5 / 5
1 2 3 4 5 6
1Trust14 / 25 · 2.8/5

The document exposes API-key, regional, managed-identity, and time-limited SAS patterns, and recommends bounded SAS permissions, so the main authentication and data-flow choices are visible. Points are deducted because it does not require confirmation for external translation, cloud upload, or target-container writes, and it omits sensitive-text handling, secret logging, SAS leakage, revocation, and rollback guidance.

2Reliability8 / 20 · 2.0/5

It provides examples for translation, language detection, transliteration, document submission, polling, pagination, and isUnexpected checks. Points are deducted because the skill itself contains no executable tests, pinned compatibility versions, input boundaries, retry/timeout guidance, or diagnostics for missing headers, malformed responses, and other abnormal cases; static calibration also limits the score.

3Adaptability9 / 15 · 3.0/5

The name and description clearly target TypeScript/JavaScript Azure Translation applications and cover text, transliteration, detection, and single/batch document translation. Points are deducted because non-fit cases, input/output contracts, regional reachability, cost constraints, and mainland-China network or endpoint availability are not stated.

4Convention8 / 15 · 2.7/5

It has installation notes, environment variables, authentication alternatives, progressive topical examples, key types, and best practices; MIT licensing, author, and version metadata are present. Points are deducted for missing changelog, maintenance/update path, compatible SDK versions, FAQ, troubleshooting, and known limitations; installation notes also omit the storage dependency needed for the batch example.

5Effectiveness7 / 15 · 2.3/5

The examples address the main translation workflows and include reusable client calls, error checks, pagination, and SAS permission setup, so they can support the core development task. Points are deducted because there is no complete runnable project, full configuration context, verified output, or comparison with alternatives, and some snippets rely on client state established elsewhere; static calibration caps this at 7.

6Verifiability4 / 10 · 2.0/5

The skill gives concrete package names, environment variables, API paths, code patterns, and error checks, while the repository materials show general evaluation workflows and harness tests. Points are deducted because the supplied material does not show skill-specific committed tests, real execution results, independent corroboration, or revision-pinned API verification, so only limited static auditability is supported.

Evidence confidence:Low Reviewed Jul 20, 2026 Reviewed revision 9ccaf7c3704a
Before you use it
  • Do not log subscription keys or translation content; use secret management and confirm data-residency, compliance, and third-party processing requirements.
  • The batch example grants source-container read and target-container read/write access through SAS URLs; constrain permissions, lifetime, and network scope, and confirm upload/write effects before proceeding.
  • The material does not document Azure endpoint reachability in mainland China, regional service differences, quotas, costs, or API-version compatibility.
  • Add guidance for retries, timeouts, cancellation, missing operation-location headers, partial success, and rollback of output files.
See the full review method →

What does this skill do, and when should you use it?

This skill provides implementation patterns for Azure Translation’s TypeScript REST-style clients. It covers text translation, transliteration, language detection, supported-language lookup, and both single and batch document translation. The examples show API-key, regional, and Azure identity authentication. It fits TypeScript teams using Azure Translator who want coding agents to generate code aligned with the documented SDK patterns.

Installs and configures Azure Translation TypeScript packages, reads Translator endpoint, subscription key, and region environment variables, creates text or document translation clients, calls the /translate, /languages, /transliterate, /detect, /document:translate, /document/batches, status, and formats endpoints, checks responses with isUnexpected, and produces translated text, language confidence scores, batch status, document status, or supported-format output. Batch document examples also use Azure Blob Storage container SAS URLs and extract an operation ID from the response headers.

  1. A TypeScript developer needs to translate English text into Spanish, French, or other target languages.
  2. An application must detect the source language when users do not provide one.
  3. A service needs transliteration between scripts, such as converting Simplified Chinese into Latin characters.
  4. A backend team needs document translation using Azure identity credentials or an API key.
  5. A workflow must start and monitor batch document translation using Blob Storage SAS URLs.

What are this skill's strengths and limitations?

Pros
  • Covers clearly defined text, transliteration, language-detection, and document-translation workflows.
  • Includes API-key, regional-credential, DefaultAzureCredential, and managed-identity patterns.
  • Shows error checking, pagination, SAS URLs, and batch-operation monitoring.
  • Examples map directly to Azure REST client packages and are useful for generating TypeScript code.
Limitations
  • Requires an Azure Translator endpoint and credentials; batch document translation also requires Blob Storage SAS URLs.
  • The source provides SDK usage patterns but no pricing, quota, or deployment guidance.
  • No standalone test results or complete project template are provided for this individual skill.

How do you install this skill?

Run npx skills add microsoft/skills in the project and select azure-ai-translation-ts in the installation wizard. The documented SDK dependencies are @azure-rest/ai-translation-text, @azure-rest/ai-translation-document, @azure/identity, and @azure/storage-blob for the batch-document example. Install by feature: npm install @azure-rest/ai-translation-text @azure/identity for text translation, or npm install @azure-rest/ai-translation-document @azure/identity for document translation.

How do you use this skill?

After installing the skill in the selected coding agent’s skills directory, trigger it for a TypeScript translation task such as: "Use the Azure Translation TypeScript SDK to implement text translation, language detection, and batch document translation with isUnexpected error handling." Set TRANSLATOR_ENDPOINT, TRANSLATOR_SUBSCRIPTION_KEY, and TRANSLATOR_REGION; when using DefaultAzureCredential, also set AZURE_TOKEN_CREDENTIALS. Then create the appropriate client, call the required endpoint, and validate the response.

FAQ

Does this skill include the Azure Translator service?
No. It provides TypeScript SDK installation and usage patterns; users still need an Azure Translator resource and valid credentials.
Do text and document translation use the same client?
No. Text translation uses @azure-rest/ai-translation-text, while document translation uses @azure-rest/ai-translation-document.
What is required for batch document translation?
You need time-limited SAS URLs for source and target Blob Storage containers, then start the batch operation and query its status and document results using the operation ID.
How should failed translation requests be handled?
The examples recommend checking isUnexpected(response) before reading the response body and throwing response.body.error for unexpected responses.

More skills from this repository

All from microsoft/agent-skills

Dev & Engineering ✓ Microsoft · Official

Azure Text Translation for Python

Add real-time Azure text translation to Python applications.

Dev & Engineering ✓ Microsoft · Official

Azure Document Translation for Python

Batch-translate Azure Blob Storage documents in Python while preserving their original formats.

Dev & Engineering ✓ Microsoft · Official

Azure AI Content Safety for TypeScript

Add text and image harm detection with customizable blocklists to TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Document Intelligence for TypeScript

Extract document text, tables, and structured fields in TypeScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure Identity for TypeScript

Configure secure, flexible Microsoft Entra ID authentication for TypeScript Azure applications.

Dev & Engineering ✓ Microsoft · Official

Azure Playwright Cloud Testing

Scale TypeScript Playwright tests on Azure-hosted browsers and publish results.

Dev & Engineering ✓ Microsoft · Official

Azure Cosmos DB TypeScript Skill

Gives TypeScript and JavaScript coding agents practical Cosmos DB data-access patterns.

Dev & Engineering ✓ Microsoft · Official

Azure Event Hubs TypeScript Skill

Build TypeScript event-streaming applications with batching, partition-aware consumers, checkpointing, and Azure identity authentication.

Dev & Engineering ✓ Microsoft · Official

Azure Blob Storage for TypeScript

A practical guide for uploading, downloading, and managing Azure Blob Storage from TypeScript and JavaScript applications.

Dev & Engineering ✓ Microsoft · Official

Azure AI Search for TypeScript

Build TypeScript search apps with vector, hybrid, and semantic retrieval patterns.

Dev & Engineering ✓ Microsoft · Official

Azure Service Bus for TypeScript

Build enterprise messaging workflows with Azure Service Bus.

Dev & Engineering ✓ Microsoft · Official

Azure AI Projects for TypeScript

Practical TypeScript guidance for building Azure AI Foundry applications with project clients, agents, tools, and evaluations.

Dev & Engineering ✓ Microsoft · Official

Azure PostgreSQL TypeScript Connector

A practical pg-based guide for secure, pooled Azure PostgreSQL access in Node.js and TypeScript.

Dev & Engineering ✓ Microsoft · Official

MCP Server Development Guide

A practical guide to building clear, testable MCP servers that let LLMs work with external APIs.

Dev & Engineering ✓ Microsoft · Official

Azure File Share TypeScript Skill

Guides coding agents through Azure SMB file-share operations in TypeScript.

Dev & Engineering ✓ Microsoft · Official

Azure Queue Storage TypeScript Skill

Build Azure Queue Storage workers that send, receive, inspect, and manage messages in TypeScript or JavaScript.

Dev & Engineering ✓ Microsoft · Official

Azure Web PubSub Real-Time Messaging

Build TypeScript WebSocket messaging, group communication, and live notification features with Azure Web PubSub.

Dev & Engineering ✓ Microsoft · Official

Microsoft 365 Agents SDK for TypeScript

Build TypeScript enterprise agents with routing, Express hosting, streaming responses, and Copilot Studio integration.

Dev & Engineering ✓ Microsoft · Official

Azure App Configuration for TypeScript

Build TypeScript apps with centralized settings, feature flags, and runtime configuration refresh.

Dev & Engineering ✓ Microsoft · Official

Azure Voice Live for TypeScript

Build real-time, bidirectional voice assistants with Azure in TypeScript.

Related skills