Public
Like
1
translator
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.
Viewing readonly version of main branch: v6View latest version
A web application for translating text between languages with text-to-speech functionality for accessibility.
- 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
├── 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
GET /
- Serves the main applicationPOST /api/translate
- Translates text between languagesGET /api/languages
- Returns list of supported languages
- Enter text in the input field
- Select source and target languages (or use auto-detect)
- Click translate to get the translation
- Use the speaker icons to hear the text read aloud
- Copy translations to clipboard
- Backend: Hono framework with TypeScript
- Frontend: React with TypeScript
- Translation: Google Translate API
- Text-to-Speech: Web Speech API
- Styling: TailwindCSS