Skip to content

how to translate from english words to marathi words with AJAX!!

Notifications You must be signed in to change notification settings

amitnaik/translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Marathi Translation Tool - Refactored

This is a refactored version of the original translation tool that converts English text to Marathi. The original code had several issues that have been addressed in this refactored version.

Changes Made

Structural Improvements

  • Fixed invalid HTML structure with proper document hierarchy
  • Removed duplicate content and malformed sections
  • Separated concerns with proper HTML, CSS, and JavaScript organization
  • Added proper semantic HTML elements

Modern JavaScript Implementation

  • Replaced deprecated Google Transliteration API with modern JavaScript approach
  • Implemented form validation with proper error handling
  • Created a class-based structure for better code organization
  • Added character counter with visual feedback
  • Implemented proper event handling

UI/UX Improvements

  • Responsive design with better layout
  • Improved form validation with real-time feedback
  • Added character pad for Marathi characters
  • Better styling with consistent color scheme
  • Added success/error messages

Code Quality

  • Removed inline JavaScript and external dependencies where possible
  • Added proper input sanitization and validation
  • Used modern JavaScript features (ES6+)
  • Added polyfill for older browsers where necessary
  • Better organized code with clear separation of concerns

Security Improvements

  • Proper form validation to prevent invalid submissions
  • Sanitized input handling
  • Removed potential XSS vulnerabilities

How to Use

Simply open refactored_index.html in any modern web browser. The application works completely client-side with no server requirements.

Features

  • English to Marathi transliteration (simulated)
  • Form validation with error messages
  • Character counter
  • Marathi character insertion pad
  • Responsive design
  • Modern UI with improved accessibility

Dependencies

  • Modern web browser with JavaScript enabled
  • Internet connection (for potential translation API integration)

Original Author

Amit Naik (amitnaik49@gmail.com)

License

Open source

About

how to translate from english words to marathi words with AJAX!!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages