Skip to content

Krishna757-Cyber/Azure-Translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🌐 Azure Translator Web App

A modern, responsive web-based translation tool powered by Microsoft Azure Cognitive Services (Translator Text API v3.0).

This application allows users to translate text between multiple languages using their own Azure API key and region.


🚀 Features

  • 🔐 Secure API key input (with show/hide option)
  • 🌍 Multi-language support (including auto-detect)
  • 🔄 Swap source and target languages
  • 📋 Copy translated text to clipboard
  • 🧠 Language detection with confidence percentage
  • 💾 Saves API credentials in browser (localStorage)
  • ⚡ Fast and responsive UI
  • 🎨 Clean modern dark theme

🛠️ Tech Stack

  • HTML5
  • CSS3
  • JavaScript (Vanilla JS)
  • Azure Translator Text API (v3.0)

📁 Project Structure

azure-translator/
│
├── index.html     # Main UI structure
├── styles.css     # Styling and layout
├── app.js         # Core logic & API integration
└── README.md      # Project documentation

⚙️ Setup Instructions

1. Get Azure Translator API Key

  1. Go to https://portal.azure.com

  2. Create a Translator resource

  3. Copy:

    • API Key
    • Region (e.g. eastus, centralindia)

2. Run the Project

No installation required.

Simply open:

index.html

in your browser.


3. How to Use

  1. Enter your API Key
  2. Enter your Region
  3. Type or paste text
  4. Click Translate
  5. View and copy translated text

🔑 API Details

  • Endpoint:
https://api.cognitive.microsofttranslator.com
  • API Version:
v3.0
  • Method:
POST

📸 UI Overview

  • Source text input (max 5000 characters)
  • Translated output display
  • Language selectors (dropdown)
  • Translate button with loading indicator
  • Status messages and error handling
  • Detected language badge

⚠️ Important Notes

  • API key is stored only in your browser (localStorage)
  • Do NOT share your API key publicly
  • Free Azure tier may have rate limits

🧠 Error Handling

Handles common issues like:

  • Invalid API key
  • Incorrect region
  • Network errors
  • Rate limit exceeded

📌 Future Improvements

  • Light/Dark mode toggle
  • Voice input translation
  • File/document translation
  • Deployment (Netlify / Vercel)
  • AI-based enhancements (summarization + translation)

👨‍💻 Author

Krishna


⭐ Support

If you like this project, give it a ⭐ on GitHub!

About

A modern web-based translator powered by Microsoft Azure Cognitive Services with multi-language support and real-time translation.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors