Offline Translator & Naming
Translate common Chinese and English words and office phrases using the built-in offline dictionary, and convert phrases into camelCase or snake_case variable names.
Screenshots
Key Features
Translate between Chinese and English using the built-in offline dictionary
translate / translator / en to zh / zh to en
Look up common Chinese and English words in the offline dictionary
dictionary / lookup / define / word
Convert phrases into English variable names (camelCase / snake_case)
variable naming / code naming / camelcase / snake_case
Overview & Usage Guide
Send typed or pasted text to the client's translation API and generate camelCase and snake_case variable names.
Usage
- Commands:
translate(keywords such astranslator,en to zh,zh to en),dictionary(lookup,define,word), andvariable naming(code naming,camelcase,snake_case). The first two commands open the same view;variable namingusescamelCaseas the title and primary action. - Typing or pasting text in the input box translates immediately: input containing Chinese is translated to English, and everything else is translated to Chinese (no other language options are available). When the input box is empty, only an input prompt is shown.
- Each translation displays a result row, with the right pane showing the translation, original text, and English
camelCaseandsnake_caseforms. - Press
Enterto copy the translation,Ctrl+Enterto copy both original and translated text, orCtrl+Kto open the action panel (including copyingcamelCaseandsnake_casevariable names). "Translate Clipboard" in the toolbar fills the input box from the clipboard and translates it. Invariable naming,EntercopiescamelCaseandCtrl+Entercopiessnake_case; English input is converted directly without translation. - The translation API currently queries only the client's built-in offline dictionary, which contains a limited set of common Chinese/English words and office phrases. When an entry is missing or the API errors, the list shows "Unable to translate" along with the reason returned by the client, rather than displaying stale translations.
- Recent translation history (up to 15 entries) appears below the list; history is kept in memory by the client and cleared when the client restarts, and cannot be cleared inside the plugin.
Platforms & Requirements
- Supported: Windows only
- Built into the client; no separate installation required.
Network & Data
- Offline only: translation runs through the client's translation API, which currently uses only the local offline dictionary and sends nothing to any online translation service.
Frequently Asked Questions (FAQ)
How do I install and launch "Offline Translator & Naming" in ZTools?
Open the Plugin Marketplace inside ZTools Workbench, search for "Offline Translator & Naming", and install it. Then type its name in the launcher bar to open it.
Is "Offline Translator & Naming" free? Which platforms are supported?
Yes, it is free to install with source code published in the ZTools-extensions repository. Supported platforms: Windows.