IntelligentTextTransformer_BrowserPlugin
Enables fluid, bidirectional linguistic conversion between English and Mandarin Chinese, featuring on-the-fly text highlighting analysis and instant result display, characterized by a streamlined user interface and rapid activation/deactivation controls.
Author

meicanhong
Quick Info
Actions
Tags
Streamlined Lexical Converter - Google Endpoint Version
Due to the discontinuation of the https://translate.google.cn service endpoint, this iteration redirects translation requests to https://translate.google.com, ensuring continued operational capability.
Key Capabilities
- Selection-Based Interpretation: Automatically surfaces translation output immediately upon text segment selection.
- Bilingual Processing: Performs automatic language identification for seamless switching between Mandarin and English translation direction.
- Minimalist Aesthetics: Features a clean, uncluttered visual design for ease of use.
- Rapid Toggling: Utilizes the Ctrl+Alt key combination for instantaneous enabling or disabling of the text-selection translation feature.
System Prerequisites
- Node.js environment, version 14.0 or newer is required.
- npm package manager, version 6.0 or newer is mandatory.
- Google Chrome web browser, version 88 or later is necessary for operation.
Deployment and Utilization Guide
Method A: Direct File Deployment (Recommended)
- Acquire all files contained within this project's
chromesubdirectory. - Navigate your Chrome browser to
chrome://extensions/. - Activate the "Developer mode" toggle situated in the upper-right corner.
- Select the "Load unpacked extension" option.
- Designate the previously downloaded
chromedirectory as the source.
Method B: Compilation from Source Code
-
Clone the repository to a local directory: bash git clone [Project_Repository_URL] cd translator_extension
-
Install all requisite dependencies: bash npm install
-
Execute the compilation sequence: bash npx tsc
-
Transfer essential assets: bash mkdir -p chrome cp blank.css icon_16.png icon_48.png icon_128.png manifest.json popup.html chrome/
-
Load the package within Chrome:
- Open Chrome and go to
chrome://extensions/. - Enable the "Developer mode" switch.
- Click "Load unpacked extension".
- Point to the newly created
chromefolder within the project structure.
Operational Instructions
- After successful installation, a dedicated translation icon will appear on your Chrome toolbar.
- Highlight any text segment; the corresponding translation will materialize automatically.
- Pressing Ctrl+Alt will instantaneously toggle the selection-based interpretation feature.
- Interaction with the toolbar icon grants access to supplementary configuration options.
Troubleshooting Common Issues
- If the extension reports being "Disabled because it is no longer supported," please repeat the installation procedure using the latest build files.
- If translation services fail to respond, verify that network connectivity is stable and unrestricted.
- If the keyboard shortcut fails to activate, check for potential conflicts with keybindings defined by other installed browser extensions.
Technical Assistance
Should you encounter any operational difficulties, kindly submit a detailed Issue report via the project's repository.
