FreeTranslator — Advanced Translation Extension
Make your app multilingual effortlessly! FreeTranslator is an advanced extension that leverages Google Translate to provide fast text translation, language detection, and text-to-speech features.
Key Features:
Auto-Translation & Language Detection: Translate texts into dozens of languages with automatic source language detection using TranslateAutoandDetectLanguage.
Smart Local Caching: Translated phrases are stored locally. Repeated requests return instantly without network overhead, saving data and speeding up your app.
Text-to-Speech (TTS) Integration: Generate a direct MP3 audio URL (GetSpeechUrl) for any text, ready to be played using standard player components.
Dynamic Language Addition: Expand the list of supported languages on the fly at runtime using the AddLanguagefunction.
Robust Error Handling: Built-in protection against timeouts, network glitches, and rate limits (Error 429), reporting clear messages via events.
Available Blocks & Functions:
- AddLanguage (langCode, langName, flagEmoji): Dynamically adds a new language to the dictionary at runtime.
- SupportedLanguages: Returns a list of all supported language codes as a YailList.
- SelectLanguage (langCode): Selects a language by code, triggering a selection event with flag details.
- GetSpeechUrl (languageCode, text): Generates a direct URL for Google TTS audio playback.
- DetectLanguage (text): Asynchronously detects the language of the given text.
- TranslateAuto (targetLang, text): Translates text with automatic source language detection.
- TranslateText (sourceLang, targetLang, text): The core translation function featuring cache checks and multi-threaded background processing.
Extension Events:
LanguageSelected— triggered when a language is selected (returns code, name, flag, and message).LanguageDetected— returns the code of the successfully detected language.GotTranslation— returns the final translated text result.ErrorOccurred— triggered when network, timeout, or parsing errors occur.
has no translation restrictions
com.freetranslator v2.aix (16.0 KB)
The extension was created with the help of: FAST

