FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
Koti_123

Koti_123

translator

Public
Like
1
translator
Home
Code
4
backend
2
frontend
1
shared
2
README.md
Branches
1
Pull requests
Remixes
1
History
Environment variables
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Sign up now
Code
/
README.md
Code
/
README.md
Search
5/23/2025
Viewing readonly version of main branch: v6
View latest version
README.md

Language Translation App

A web application for translating text between languages with text-to-speech functionality for accessibility.

Features

  • Text Translation: Translate text between multiple languages using Google Translate API
  • Text-to-Speech: Audio playback of both original and translated text for hearing accessibility
  • Language Detection: Automatic detection of input language
  • Search Interface: Clean, accessible input interface with language selection
  • Responsive Design: Works on desktop and mobile devices

Project Structure

├── backend/
│   ├── index.ts             # Main Hono server with translation API
│   └── README.md
├── frontend/
│   ├── components/
│   │   ├── App.tsx          # Main translation interface
│   │   └── LanguageSelector.tsx  # Language selection component
│   ├── index.html           # Main HTML template
│   ├── index.tsx            # Frontend entry point
│   ├── style.css            # Custom styles
│   └── README.md
├── shared/
│   ├── types.ts             # Shared TypeScript types
│   └── README.md
└── README.md

API Endpoints

  • GET / - Serves the main application
  • POST /api/translate - Translates text between languages
  • GET /api/languages - Returns list of supported languages

Usage

  1. Enter text in the input field
  2. Select source and target languages (or use auto-detect)
  3. Click translate to get the translation
  4. Use the speaker icons to hear the text read aloud
  5. Copy translations to clipboard

Technologies

  • Backend: Hono framework with TypeScript
  • Frontend: React with TypeScript
  • Translation: Google Translate API
  • Text-to-Speech: Web Speech API
  • Styling: TailwindCSS
FeaturesVersion controlCode intelligenceCLI
Use cases
TeamsAI agentsSlackGTM
ExploreDocsShowcaseTemplatesNewestTrendingAPI examplesNPM packages
PricingNewsletterBlogAboutCareersBrandhi@val.townStatus
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.