FO Translator is a browser extension that uses LLM to deliver more natural and nuanced translations, inspired by the Translation-Agent from Andrew Ng, combining translation with reflection for improved results.
- Agent-Based Translation: Using "translation-agent" approach for more natural and nuanced translations.
- OpenAI Integration: With OpenAI's Compatible APIs, allowing you to use local and service operators' endpoints.
- Effortless Translation: Select text on any webpage, click the FO Translator icon, and get an improved translation in seconds.
- Flexible prompts: Customize prompts for creating even more possibilities! More than translation.
- Privacy First: No logs or traces are collected by extension self, settings data saved in local. Privacy, safe and open-source.
-
Download the code: Clone this repository or download ZIP to your local machine.
-
Open Extensions: Navigate to
chrome://extensions
in your Chrome browser orabout:debugging#/runtime/this-firefox
in Firefox(version >= 126.0) browser. -
Enable Developer Mode: In Toggle the "Developer mode" switch at the top right corner in Chrome.
-
Load extension in Chrome: Click "Load unpacked" and select the "src" directory from the downloaded files.
Load Add-on in Firefox: Compress the "src" folder into a zip file Click "Load temporary Add-on" in Firefox to choose the zip file.
- Select Text: Highlight the text you want to translate on any webpage.
- Click the Icon: Click the FO Translator icon 🌕.
Alternatively:
- Click the Bar Icon: Click the FO Translator bar icon in your browser toolbar.
- Paste Text: Translate the text you want to translate into the input field.
- Source Language: Set the source language in the extension's settings.
- Target Language: Set the target language in the extension's settings.
- translation Prompts: Customize your translation prompts in the extension's settings with basic variables(
{srouce_lang}, {target_lang}, {translation_1}, {reflection}
).
Contributions are welcome! Please feel free to submit pull requests for bug fixes, feature enhancements, or new translations.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to Translation-Agent.