@robinpath/deepl
v0.1.0
Published
> DeepL module for RobinPath.
Keywords
Readme
@robinpath/deepl
DeepL module for RobinPath.
Why use this module?
The deepl module lets you:
- translateText
- translateBatch
- getUsage
- listSourceLanguages
- listTargetLanguages
All functions are callable directly from RobinPath scripts with a simple, consistent API.
Installation
npm install @robinpath/deeplQuick Start
1. Set up credentials
deepl.setCredentials "your-credentials"2. translateText
deepl.translateTextAvailable Functions
| Function | Description |
|----------|-------------|
| deepl.setCredentials | Configure deepl credentials. |
| deepl.translateText | translateText |
| deepl.translateBatch | translateBatch |
| deepl.getUsage | getUsage |
| deepl.listSourceLanguages | listSourceLanguages |
| deepl.listTargetLanguages | listTargetLanguages |
| deepl.listGlossaryLanguagePairs | listGlossaryLanguagePairs |
| deepl.createGlossary | createGlossary |
| deepl.getGlossary | getGlossary |
| deepl.listGlossaries | listGlossaries |
| deepl.deleteGlossary | deleteGlossary |
| deepl.getGlossaryEntries | getGlossaryEntries |
| deepl.translateDocument | translateDocument |
Examples
translateText
deepl.translateTexttranslateBatch
deepl.translateBatchgetUsage
deepl.getUsageIntegration with RobinPath
import { RobinPath } from "@wiredwp/robinpath";
import Module from "@robinpath/deepl";
const rp = new RobinPath();
rp.registerModule(Module.name, Module.functions);
rp.registerModuleMeta(Module.name, Module.functionMetadata);
const result = await rp.executeScript(`
deepl.setCredentials "your-credentials"
deepl.translateText
`);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/translate— Translate module for complementary functionality@robinpath/json— JSON module for complementary functionality
License
MIT
