The backend server built with Hono framework providing translation API endpoints.
Serves the main application HTML page.
Returns a list of supported languages for translation.
Response:
{ "languages": [ { "code": "en", "name": "English" }, { "code": "es", "name": "Spanish" }, ... ] }
Translates text between languages.
Request:
{ "text": "Hello world", "from": "en", "to": "es" }
Response:
{ "translatedText": "Hola mundo", "detectedLanguage": "en" }
Uses Google Translate's free API endpoint for translations. Supports:
/frontend/*
/shared/*