text-translator
Skill2 starsChanged 38 days agoMITView on GitHub
Use when translating markdown notes to a different language while preserving formatting, images, and special elements
In this repository15 other files it gives its agents.
- notemdproSkill
- batch-processorSkill
- concept-extractorSkill
- content-generatorSkill
- diagram-generatorSkill
- formula-healerSkill
- link-analyzerSkill
- mermaid-healerSkill
- mermaid-summarizerSkill
- qa-extractorSkill
- selection-processorSkill
- system-architectureSkill
- test-driven-developmentSkill
- web-researcherSkill
- workflow-runnerSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 14
Multi-language vault: Create translated versions of notes
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
NoteMD Pro - Translation
Overview
This feature translates markdown notes to different languages using LLM. It supports single file translation, batch folder translation, and preserves markdown formatting and special elements like images.
When to Use
- Multi-language vault: Create translated versions of notes
- Language learning: Translate content for study
- International collaboration: Share notes across languages
- Content localization: Adapt content for different audiences
Function Call Chain
translateFile (translate.ts)
├── read_file(inputPath)
├── splitContent(content, settings)
├── getProviderForTask('translate', settings)
├── callLLM(provider, prompt, chunk)
│ └── Translated chunk
├── join translated chunks
├── save translated file
│ └── write_file(outputPath, content)
└── open file (if enabled)
batchTranslateFolder
├── filter .md files in folder
├── createConcurrentProcessor
├── processFile for each file
└── ProgressModal reportingKey Functions (from translate.ts)
translateFile
Translates a single file to target language.
export async function translateFile(
settings: NotemdSettings,
inputPath: string,
targetLanguage: string,
progressReporter: ProgressReporter,
openFile?: boolean,
signal?: AbortSignal,
): Promise<string | null>;
// Returns: Path to translated filebatchTranslateFolder
Translates all markdown files in a folder.
export async function batchTranslateFolder(
settings: NotemdSettings,
folderPath: string,
targetLanguage: string,
): Promise<void>;Settings
Translation Settings
| Setting | Description |
translateProvider | LLM provider for translation |
translateModel | Model for translation |
Output Settings
| Setting | Description |
useCustomTranslationSuffix | Use custom filename suffix |
translationCustomSuffix | Custom suffix (e.g., "_es", "_fr") |
useCustomTranslationSavePath | Use custom save path |
translationSavePath | Custom save path |
Language Settings
| Setting | Description |
language | Default language code |
availableLanguages | List of supported languages |
Prompt Template (translate)
From promptUtils.ts:
Translate the following text to {LANGUAGE}.
Only output the translated text.
Do not include the original text.
Note: For special image formats, please retain them as they are,
for example: 
Text to translate:
{TEXT}Supported Languages
The plugin supports multiple languages including:
- English (en)
- Spanish (es)
- French (fr)
- German (de)
- Chinese (zh)
- Japanese (ja)
- Korean (ko)
- And more...
Output File Naming
| Setting | Example Input | Output |
| Default suffix | note.md | note_es.md |
| Custom suffix | note.md | note.es.md |
| Custom path | note.md + translations/ | translations/note.md |
Error Handling
Common Errors
- No provider configured
- Error: "No provider configured for translation"
- Solution: Configure translate provider in settings
- Empty file
- Warning: "File is empty"
- Solution: Check source file content
- Translation timeout
- Error: "Translation cancelled"
- Solution: Reduce chunk size, check network
Cancellation
- Users can cancel translation via AbortSignal
- Already translated chunks are preserved
- Partial results not saved on cancellation
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

