Saropa Translate
Check, translate and review the translation files of the project open in VS Code, with a model
that runs on your own computer.
Saropa Translate protects what must not change in a translated text: placeholders, ICU plural and
select structure, markup, code spans and brand names. Every translated value is checked before it
is written, and a damaged value is refused rather than saved.
Features
- Setup shows whether Python, Ollama and a translation model are installed, with their
versions. Anything missing has its own button; nothing is downloaded or installed without a click.
- Audit lists the languages of the open project, how complete each one is, and the problems
found: missing texts, damaged placeholders, texts no longer used, and project settings worth a
look. The checks run by themselves and change nothing in the project.
- Run translates the missing texts. A run starts only after a click on its confirm button, shows
its current step, done of total and the time elapsed, and can be stopped.
- Review lists the translated texts that wait for a decision: approve, edit, or mark for redo.
Supported files include Flutter ARB files and the package.nls.*.json and l10n bundle files of
VS Code extensions.




Requirements
- Python 3 on the computer. The extension uses
py -3 on Windows and python3 elsewhere, or
the interpreter set in saropaTranslate.pythonPath. Setup offers to install a newer Python when
the one found is too old.
- Ollama and a translation model, for translation runs only. Audit and Review work without them.
Setup shows what is missing and installs it after a click.
Getting started
- Open the folder of a project that has translation files.
- Open Saropa Translate in the activity bar. The project is always the folder open in the
window; with several folders it is the folder of the active editor, else the first one with
translation files.
- Follow Setup, then look at Audit. The Get Started walkthrough has the same steps.
The translation tool ships inside the extension; nothing else needs to be downloaded to audit a
project.
Settings
| Setting |
What it does |
saropaTranslate.pythonPath |
Python to run the tool with; empty uses py -3 (Windows) or python3 |
saropaTranslate.dataPath |
Where audits, settings and logs are kept; empty uses the default data folder |
saropaTranslate.run.confirmWrites |
Ask before every file change, also after its preview |
saropaTranslate.run.notifyOnEnd |
Show a notification when a run ends while its screen is hidden |
saropaTranslate.notifyNewProblems |
Show a notification when new broken text is found while no Saropa screen is visible |
saropaTranslate.setup.checkUpdates |
Look for newer Ollama and Python versions during the Setup check, so an upgrade can be offered |
The full list is under Settings > Extensions > Saropa Translate.
Your files and data
- Translated files are written into your project and left for you to review and commit; the
extension never commits, pushes or edits
.gitignore.
- Runs keep a log without color codes or secrets, under
reports/ in the open folder (or in the
data folder for a read-only project).
- Translation runs use the local model through Ollama on your computer.
- There are no modal dialogs: confirmations appear inline on the screen.
Feedback and source
Source code, issues and the change history: https://github.com/saropa/saropa_translate.
Report a problem at https://github.com/saropa/saropa_translate/issues.
Build from source
cd extension
npm ci
npm test
cd ..
py -3 scripts/build.py package
build.py package compiles and tests the extension, writes extension/saropa-translate-<version>.vsix
and refuses the file if it holds anything outside its allowlist, a drive path or a secret.
Maintainers release with py -3 scripts/publish.py (a dry run unless full is given).
License
MIT. The bundled icon font is VS Code's @vscode/codicons (CC BY 4.0).