This Chrome extension allows you to select Chinese text on any webpage and get instant translation, pronunciation, and stroke order animations. It is designed to assist users in learning Mandarin by providing detailed translations, pinyin with tone marks, and interactive stroke order demonstrations.
The plugin is defintely still very buggy and although all the core features work, I've noticed that on certain web pages the plugin will actually interfere and keep the webpage from loading properly. I'll get to it when I can.
- Instant Translation: Highlight Chinese text to get a popup with translations broken down into meaningful units.
- Pinyin with Tone Marks: View pinyin with accurate tone marks aligned character by character.
- Pronunciation Audio: Listen to the pronunciation of the selected text or individual words.
- Stroke Order Animation: Click on any Chinese character to see its stroke order animation.
- Character Analysis: Get detailed information about radicals, components, and etymology.
- Interactive Quiz: Practice writing characters with the stroke order quiz.
- Clone or download this repository to your local machine.
- Open Chrome and navigate to
chrome://extensions/
. - Enable Developer mode by toggling the switch in the top-right corner.
- Click Load unpacked and select the directory where the extension is located.
- Click on the extension icon and enter your OpenAI API key.
- Navigate to any webpage with Chinese text.
- Highlight the text you want to translate.
- A popup will appear with translation options and additional features.
- Hanzi Writer: For stroke order animations.
- OpenAI API: For translation and pronunciation services.
This project is licensed under the MIT License - see the LICENSE file for details.
- Thanks to chanind for the Hanzi Writer library.
- Chinese character data sourced from a dictionary dataset.