Repository navigation
Releases
RDAT: Translation Copilot v0.4.3 (Pre-release)
v0.4.3 Pre-release
Five fixes from the v0.4.2 review + a translation benchmark harness.
1. Ollama tag corrections
Corrected gemma4:12b-qat (invalid) to gemma4:12b-it-qat (verified live, 7.15 GB). Added gemma4:e2b-it-qat + gemma4:e4b-it-qat. Registry validator + fixture test.
2. PWA Ollama is now opt-in
No boot-time localhost probe. "Connect to local Ollama" card with exact-origin instructions. Error classification (5 types). No OLLAMA_ORIGINS=*.
3. Windows/Tauri pull: no-timeout client
Dedicated ollama_pull_client() with no total timeout for multi-GB pulls. Actionable error messages.
4. Gemini 3.8 thinking: LOW for ghost text
thinkingConfig.thinkingLevel: LOW for ghost-text calls. Default was medium (wasteful).
5. Model profiles + Show all toggle
Pattern-based settings (gemma4/qwen3: disable thinking; translategemma: single user message). Show all toggle.
Translation benchmark harness
10 candidates (verified live), 3 datasets (FLORES+, WMT24++, domain), 2 conditions, chrF++ scoring, compliance, glossary adherence. 68 unit tests.
Test results
npm run lint: clean- 552/552 tests pass (484 app + 68 bench)
vite build: OKcargo build: OK (fixed reqwest timeout type mismatch)
Desktop installers building now via GitHub Actions.
RDAT: Translation Copilot v0.4.2 (Pre-release)
v0.4.2 Pre-release
Three changes from v0.4.1 testing:
1. PWA can now use Ollama (not just WebLLM)
The PWA was WebLLM-only; Ollama was Tauri-only. v0.4.2 adds an HTTP backend to OllamaAdapter so the PWA can reach a local Ollama daemon at localhost:11434. To use: set OLLAMA_ORIGINS=* on your Ollama, then start it normally — the PWA detects it automatically. The adapter factory tries Ollama first in both modes, falling back to WebLLM only if Ollama is unreachable.
2. Gemma 4 12B QAT + model filtering
- Added
gemma4:12b-qatto the recommended catalog (Gemma 4 12B Quantization-Aware Training, ~7 GB, highest quality). - Filtered out non-translation models (embedding, vision, code-only) from the user-pulled list. The Models panel stays focused.
3. Instruction text scales with editor font
The A-/A+/Reset font controls now also scale panel headers, badges, sidebar tabs, status rows, and import instructions via a second CSS variable (--instruction-font-size, 71% of editor font, floored at 10px). Previously only segment text scaled.
Test results
npm run lint: clean- 9 test suites: 397/397 pass
vite build: OK
Desktop installers (Windows/macOS/Linux) building now via GitHub Actions.
RDAT: Translation Copilot v0.4.1 (Pre-release)
v0.4.1 Pre-release — Resilience fixes
Four fixes addressing near-term production risks identified after v0.4.0:
1. Gemini 3.8 Flash upgrade + configurable model ID + model-retired error
The Gemini model ID was hardcoded as gemini-2.5-flash in 7 places. Upgraded default to gemini-3.8-flash (the latest stable Flash model — note: Gemini 4.0 does not exist yet). Made the model ID user-configurable in the API Keys panel. Vercel functions respect a GEMINI_MODEL env var. New ModelRetiredError surfaces a specific actionable message instead of a generic 404.
2. Document entity (docId) — no more cross-document overwrites
Segment ids were positional with no document identity. Confirming segment N in document B overwrote document A. v0.4.1 adds a docId (crypto.randomUUID()), DB v4→v5 additive migration, and scopes hydration + clear-text by docId.
3. Export + persistence
- DOCX export (source/target pairs as .docx)
- JSON backup/restore (full dump of segments + glossary + documents)
navigator.storage.persist()on boot
4. ARASEG benchmark — 70.62% F1
Benchmarked the Arabic segmenter against ARASEG (NAMAA-Community, MBZUAI + NYU Abu Dhabi). Results on the PA dev split (222 docs, 163k tokens):
| Method | PA F1 |
|---|---|
| Generic rules | 63–67% |
| SaT (neural) | 66.9% |
| RDAT segmenter | 70.62% |
| Gemini 3.1 Pro | 76.8% |
| Fine-tuned CAMeLBERT | 95.6% |
Beats generic rules + SaT. Below neural baselines — the expected cost of the rule-based approach (no model download, instant, deterministic, privacy-first).
Test results
npm run lint: clean- 8 test suites: 356/356 pass (12+30+89+65+51+37+31+41)
cargo audit: 0 vulnerabilitiesvite build: OK
This is a pre-release. Desktop installers (Windows/macOS/Linux) are building now via GitHub Actions and will attach automatically.
RDAT: Translation Copilot v0.4.0 (Pre-release)
v0.4.0 Pre-release
New features
- Paragraph-faithful CAT-grade segmentation (Trados/SRX-style) with Arabic-aware rules — protected
«»/﴿﴾spans, attribution-verb suppression, soft-split suggestions for long sentences,sourceHash-based persistence integrity (additive IDB v4 migration). - Ghost-text gate — suggestions hidden until the translator starts typing; background generation unchanged.
- Font size controls (A−/A+/Reset, 12–32px, persisted) + Clear text action with confirmation dialog.
- WebLLM Gemma 4 E4B (Experimental) — config-driven catalog, capability gating, storage pre-check, thinking-markup stripping.
Security fixes
h20.4.15 → 0.4.19 (RUSTSEC-2026-0258)rustls0.23.42 → 0.23.45 (RUSTSEC-2026-0285)
Artifacts
- PWA (
rdat-v0.4.0-pwa.zip) — deploydist/to Vercel/Netlify/any static host. Uploaded now. - Windows (
.exeNSIS installer) — built by GitHub Actions, attached when ready. - macOS (
.dmgfor Apple Silicon + Intel) — built by GitHub Actions, attached when ready. - Linux (
.deb,.rpm,.AppImage) — built by GitHub Actions, attached when ready.
Test results
npm run lint: cleantest-bidirectional-lte: 12/12test-phase3-regression: 30/30test-segmentation: 89/89 (new)test-ghost-gate: 65/65 (new)test-webllm-catalog: 51/51 (new)cargo audit: 0 vulnerabilitiesvite build: OK
See the README Unreleased (v0.4.0) section for full details. This is a pre-release — the Gemma 4 E4B WebLLM build is labelled Experimental (browser runtime validation still pending), and the interactive UI matrix (EN/AR × direction) was not run in CI.
RDAT: Translation Copilot v0.3.1
v0.3.1: Security & reliability audit fixes (14 issues) Fixes all 14 issues from the comprehensive repository audit. Security: API key header transport, no-persist-by-default, strict CSP, Vercel rate limiting + size caps. Reliability: IDB connection cache, React Error Boundary, Tauri-aware warmup, error-classified retries. Data integrity: deterministic segment ids, string glossary ids. Architecture: deps updated, capabilities tightened, Tauri updater signing enabled, cargo-audit in CI. See 'What's New in v0.3.1' in README.md for the full changelog.
RDAT: Translation Copilot v0.3.0 — Bidirectional EN↔AR + Cross-Platform CI/CD
RDAT: Translation Copilot v0.3.0
Professional Bidirectional English↔Arabic Computer-Assisted Translation (CAT) Environment
v0.3.0 is a major release that completes the bidirectional translation pipeline, polishes the dark/light theme, and adds GitHub Actions CI/CD with cross-platform Tauri builds.
⏳ Installers building: The Windows (.exe), macOS (.dmg), and Linux (.deb / .rpm / .AppImage) installers are being built right now by the
ReleaseGitHub Actions workflow. The first run takes 15–30 minutes per platform because Rust compiles every dependency from scratch. Once complete, the installers will appear in the Assets section below.
🌐 Bidirectional Translation (Phase 1)
AR→EN translation now works end-to-end across all three tiers — previously it only worked on the Tauri+Ollama path; every other tier silently hardcoded an EN→AR assumption.
Tier 0 — Local Translation Engine (LTE)
- Bidirectional
enIndex+arIndexbuilt inload();getSuggestion()/search()take adirectionparameter (default"en-ar"for backward compat). - Arabic sentence-splitting now recognises the Arabic question mark
؟(U+061F) and Arabic-letter lookahead. normalize()strips؟alongside the existing؛/،punctuation stripping.
Tier 1 — Local LLM (Ollama + WebLLM)
generateLocalTranslation()/generateRAGTranslation()/prefetchTranslation()accept adirectionparameter and call the sharedbuildRAGSystemPrompt()/buildUserPrompt()fromllm-adapter.ts.- The duplicated hardcoded prompts that caused the original AR→EN bug are deleted.
- WebLLM adapter reads direction from the workspace store (mirroring Ollama adapter); the dead
buildRAGSystemPrompt/buildUserPromptimport is removed.
Tier 2 — Cloud Gemini (Vercel + Tauri proxy)
GeminiBurstRequest/GeminiFullRequest/GeminiTutorRequestaccept an optionaldirectionfield.- New shared
api/_lib/prompts.tskeeps PWA and Tauri prompt builders in sync. useGeminihook forwards direction;TargetEditor.tsxpasses it at the call site.
AI Translation Tutor
- Prompt now labels the source/target correctly for AR→EN attempts ("Arabic Source" / "English Translation Attempt") instead of always saying "English Source" / "Arabic Translation Attempt". The course title stays "Arabic-English professional translation" because the tutor teaches bidirectional AR↔EN translation.
isRTLstill controls the output language of the tutor's feedback, separate from the translation direction.
Persistence + UI
- Segment
source_lang/target_langderived from active direction on save. - Source panel header, language tag, placeholder, and textarea direction all flip with direction.
- Target panel's speech-synthesis locale switches to
en-USin AR→EN mode.
📒 Glossary UX (Phase 2)
"Download" → "Use" with persistence
- Downloaded reference DBs are tracked in IndexedDB
sync_meta(downloaded_reference_dbskey), so the button label survives page reloads. - "Use" is a toggle — clicking it removes that DB's entries (identified by a
source_dbfield on each tagged entry). - Multiple DBs can be "in use" simultaneously (matches the existing data model).
Inline editing
- Every glossary entry, regardless of source (manual add, JSON upload, or reference DB), can be edited in place via a Pencil icon next to the existing Trash2.
- Edits trigger an LTE rebuild (deferred via
queueMicrotask) so ghost-text reflects the change immediately.
Dark-mode fixes
- 15 hardcoded
bg-[#0A0B0E]/dark:bg-[#0F1116]patterns replaced withbg-background/bg-surfacetokens across TranslationWorkspace, SourceEditor, TargetEditor, WelcomeTab, GlossaryView, QuickGuideModal. - Toasts converted from always-dark
bg-[#1a1d23]to theme-awarebg-surface/text-foreground/border-border. - WelcomeWindow splash left intentionally always-dark (flagged for project owner decision — see release notes below).
🔬 Regression Sweep + Lint Hardening (Phase 3)
Direction regression sweep
- AI Tutor prompt was the largest remaining hardcoded direction assumption — now direction-aware (see above).
server.ts(local dev Express server) had hardcoded EN→AR prompts for all three endpoints — rewrote to use the shared direction-aware builders fromapi/_lib/prompts.ts.
Data model correctness
- Manual Add-Term and JSON-upload paths now derive
source_lang/target_langfrom active direction (with JSON honouring explicit per-row fields if present). - Reference-DB catalog and SEED_CORPUS loader keep
en/arbecause those datasets are intrinsically English-source → Arabic-target — verified as correct.
TypeScript strictness
noUnusedLocals+noUnusedParametersnow enabled intsconfig.jsonsonpm run lintcatches dead imports going forward.- The Phase 1 dead-import root cause was "no lint rule was on at all" — that gap is now closed.
- All 30 pre-existing unused-var errors cleaned up.
🤖 CI/CD (new in v0.3.0)
.github/workflows/ci.yml
Runs on every push/PR. Provides fast feedback (~2 min):
- TypeScript strict lint (with
noUnusedLocals/noUnusedParameters) - Phase 1 LTE smoke test (12/12)
- Phase 3 regression sweep (30/30)
- Vite production build
.github/workflows/release.yml
Triggered by pushing a v* tag. Pre-flights with the same lint+test+build gate, then builds Tauri installers in parallel:
- Windows x64 —
.exeNSIS installer - macOS Apple Silicon —
.dmg - macOS Intel —
.dmg - Linux x64 —
.deb/.rpm/.AppImage
All four platform installers attach to this release automatically via tauri-apps/tauri-action@v0. First run on each platform takes 15–30 min for Rust compilation; subsequent runs reuse cargo cache and finish in 5–10 min.
🧪 Smoke Tests
Two offline smoke-test scripts ship in scripts/:
npx tsx scripts/test-bidirectional-lte.ts # Phase 1 — 12 tests
npx tsx scripts/test-phase3-regression.ts # Phase 3 — 30 testsBoth pass clean as of this release.
⚠️ Known limitations flagged for project owner
- WelcomeWindow splash is intentionally always-dark (~30
text-white/NNopacity layers). Converting it to follow the theme toggle is a mechanical but spread-out change. Flagged for project owner decision. - Reference-DB "Use" is a toggle (multiple DBs in use simultaneously). If exclusive single-DB use is preferred, the change is local to
GlossaryView.tsx'shandleDownloadDb. docs/RDAT-Translation-Copilot-v0.2.0-User-Guide.pdfstill describes the app as English-to-Arabic only. This is a v0.2.0 release artifact; updating it is a release-engineering task for v0.3.1.- Comprehensive EN↔AR dictionary: the current seed corpus is ~85 hand-picked entries. Sourcing a licensed multi-thousand-entry bidirectional dictionary is still on the roadmap (see README).
- LTE performance at scale: the current "rebuild whole in-memory index on every mutation" approach (deferred via
queueMicrotask) should be load-tested with a multi-thousand-entry corpus. If it janks, move to a Web Worker.
📥 Install
Desktop (recommended)
Download the installer for your platform from the Assets section below. The installers will appear once the Release GitHub Actions workflow finishes building them.
- Windows:
RDAT Copilot_0.3.0_x64-setup.exe(NSIS installer) - macOS Apple Silicon (M1/M2/M3):
RDAT Copilot_0.3.0_aarch64.dmg - macOS Intel:
RDAT Copilot_0.3.0_x64.dmg - Linux: pick
.deb(Debian/Ubuntu),.rpm(Fedora/RHEL), or.AppImage(universal)
After install, open the Models panel and click Pull on gemma4:e2b (~1.5 GB) to get the recommended starter model. See the Getting Started guide for full setup instructions.
PWA (browser, no install)
Visit https://rdat.vercel.app (or your own Vercel deployment) in Chrome 113+ or Edge 113+ for browser-only mode with optional WebLLM inference.
🙏 Acknowledgements
Developed by Dr. Waleed Mandour, Assistant Lecturer at Sultan Qaboos University, Oman. The development of RDAT: Translation Copilot has been performed with the assistance of multi-AI agents. The primary AI assistant used throughout the development lifecycle was GLM 5.2 (2026) by Z.ai, used for code generation, architectural analysis, debugging, documentation, and visual design.
Full changelog: v0.2.0...v0.3.0
v0.2.0 — RDAT: Translation Copilot (Dual-Path: Tauri + Ollama + PWA)
RDAT: Translation Copilot v0.2.0
Dual-path AI-powered translation workspace for professional English-to-Arabic translation. Ships as a Tauri 2 desktop app (Windows, macOS, Linux) with Ollama as the primary local LLM engine, and as a PWA on Vercel with WebLLM fallback.
Downloads
Desktop Installers
| Platform | File | Size |
|---|---|---|
| Windows x64 (NSIS) | RDAT.Copilot_0.2.0_x64-setup.exe | 5.5 MB |
| Windows x64 (MSI) | RDAT.Copilot_0.2.0_x64_en-US.msi | 6.4 MB |
| macOS Apple Silicon | RDAT.Copilot_0.2.0_aarch64.dmg | 7.3 MB |
Web PWA (No Install)
Try RDAT directly in your browser (Chrome 113+ recommended for WebGPU): (https://rdat-five.vercel.app/)](https://rdat-five.vercel.app/)
Documentation
Prerequisites
Desktop App
- Ollama installed and running: ollama.com/download
- Pull a model:
ollama pull gemma4:e2b(recommended, ~1.5 GB) - Windows: MSI requires MSVC Build Tools. NSIS (.exe) does not.
- macOS: Xcode Command Line Tools (
xcode-select --install)
PWA
- Chrome 113+ or Edge 113+ (for WebGPU local LLM)
- Optional: Gemini API key from Google AI Studio
Key Features
- Continuous Assistance: Idle-pause re-engagement (2s timer) provides suggestions during thinking pauses
- Three-Tier Pipeline: LTE (corpus, <5ms) -> Local LLM (Ollama/Gemma 4, primary) -> Gemini (cloud fallback)
- RAG-Augmented Translation: Glossary terms injected into LLM prompts
- Bidirectional: EN-AR and AR-EN translation direction toggle
- Document Import: .txt and .docx files supported
- Glossary Management: Add terms manually, import JSON, IndexedDB persistence
- AI Translation Tutor: Pedagogical feedback via Gemini
- Status Bar: Real-time Typing/Suggesting/Ready indicators
- Qwen3 Support: Native
think: falseAPI parameter disables thinking mode - Ollama Detection Hardening: Proxy bypass, IPv4 explicit, multi-URL fallback, cold-start auto-retry, structured diagnostics
Build from Source
git clone https://github.com/waleedmandour/rdat.git
cd rdat
git checkout feature/tauri-ollama-scaffold
npm install
# Windows: npm run tauri:build -- --bundles nsis
# macOS: npm run tauri:buildSee the [build instructions](https://github.com/waleedmandour/rdat# getting-started) in the README for full details.
Citation
If you use RDAT: Translation Copilot in academic work, please cite:
Mandour, W. (2026). RDAT: Translation Copilot (Version 0.2.0) [Computer software]. Zenodo. https://doi.org/10.5281/zenodo.21256765
Acknowledgements
Dr. Waleed Mandour, Sultan Qaboos University, Oman
- Email: w.abumandour@squ.edu.om
- Website: waleedmandour.org
- ORCID: 0000-0002-9262-5993
- DOI: 10.5281/zenodo.21256765
Built with the assistance of GLM 5.2 (2026) by Z.ai and additional AI agents.
Built with heart to the Academic Community