azure-ai-translation-ts
Translate content with Azure AI Translation SDKs
Need to add multilingual support to your applications? This skill provides TypeScript clients for Azure Translation services, enabling text translation, document translation, transliteration, and language detection with enterprise-grade reliability.
Download the skill ZIP
Upload in Claude
Go to Settings β Capabilities β Skills β Upload skill
Toggle on and start using
Test it
Using "azure-ai-translation-ts". Translate "Welcome to our platform" to Spanish, French, and German
Expected outcome:
- Spanish (es): Bienvenido a nuestra plataforma
- French (fr): Bienvenue sur notre plateforme
- German (de): Willkommen auf unserer Plattform
Using "azure-ai-translation-ts". Detect language: "θΏζ―δΈδΈͺζ΅θ―"
Expected outcome:
- Detected Language: Chinese (Simplified)
- Language Code: zh-Hans
- Confidence Score: 0.99
Security Audit
SafeStatic analyzer flagged 53 patterns but all are false positives. The skill is documentation (SKILL.md) showing legitimate Azure SDK usage examples. Environment variable access follows secure credential handling patterns. Network URLs are configuration examples for Azure Cognitive Services endpoints. No actual code execution, command injection, or malicious patterns detected.
Risk Factors
π Network access (2)
π Env variables (3)
Quality Score
What You Can Build
Multilingual Application Developer
Integrate real-time translation into web or mobile apps to serve global users. Automatically detect user language and translate UI strings, content, or user-generated text on demand.
Content Localization Specialist
Batch translate documentation, marketing materials, or support content across multiple languages. Preserve document formatting while translating PDFs, Word documents, or HTML pages.
Data Processing Engineer
Build ETL pipelines that normalize multilingual data. Detect languages in incoming data streams and translate to a common language for unified analysis and reporting.
Try These Prompts
Translate the following text from English to Spanish using Azure Translation: "Hello, how can I help you today?"
I have text in an unknown language: "Bonjour, comment allez-vous?" Detect the language and translate it to English and German using the Azure Translation SDK.
Translate the attached PDF document from English to French and Japanese. Preserve the original formatting and use formal tone for business context. Store the translated files in the target Azure Blob container.
Set up a batch translation workflow that processes all text files in the source container, translates them to Spanish, Portuguese, and Italian, and saves results to the output container. Include status monitoring and error handling for failed translations.
Best Practices
- Always use environment variables for storing API keys and endpoints - never hardcode credentials in source files
- Check isUnexpected(response) before accessing response body to handle API errors gracefully
- Use SAS tokens with limited permissions and expiration times for document translation blob containers
- Batch multiple translation requests together to reduce API calls and improve performance
- Implement retry logic with exponential backoff for transient network failures
Avoid
- Hardcoding API keys or subscription credentials directly in code instead of using environment variables
- Calling translation API for every single word individually instead of batching multiple texts
- Ignoring error responses and assuming all translation requests succeed without validation
- Using indefinite SAS token expiration times which creates security vulnerabilities
Frequently Asked Questions
How do I get started with Azure Translation API?
What languages are supported for translation?
Can I translate entire documents while keeping formatting?
How is pricing calculated for Azure Translation?
Can I customize translation output for specific domains?
What happens if the translation API is unavailable?
Developer Details
Author
sickn33License
MIT
Repository
https://github.com/sickn33/antigravity-awesome-skills/tree/main/skills/azure-ai-translation-tsRef
main
File structure
π SKILL.md