@robinpath/translate
v0.1.1
Published
Translate module for RobinPath.
Readme
@robinpath/translate
Translate module for RobinPath.
Why use this module?
The translate module lets you:
- translateText
- translateBatch
- detectLanguage
- listLanguages
- getSupportedLanguagePairs
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/translateQuick Start
No credentials needed — start using it right away:
translate.translateBatchAvailable Functions
| Function | Description |
|----------|-------------|
| translate.translateText | translateText |
| translate.translateBatch | translateBatch |
| translate.detectLanguage | detectLanguage |
| translate.listLanguages | listLanguages |
| translate.getSupportedLanguagePairs | getSupportedLanguagePairs |
| translate.translateHtml | translateHtml |
| translate.suggestTranslation | suggestTranslation |
| translate.getTranslationMemory | getTranslationMemory |
| translate.autoTranslate | autoTranslate |
| translate.setProvider | setProvider |
Examples
translateBatch
translate.translateBatchdetectLanguage
translate.detectLanguagelistLanguages
translate.listLanguagesIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/translate";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
translate.translateBatch
`);Full API Reference
See MODULE.md for complete documentation including all parameters, return types, error handling, and advanced examples.
Related Modules
@robinpath/openai— OpenAI module for complementary functionality@robinpath/anthropic— Anthropic module for complementary functionality@robinpath/ai— AI module for complementary functionality@robinpath/deepl— DeepL module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
