fix: translation + grammar proxy bugs for Voxlen account users #4751
ccantynzcommented Jun 12, 2026
Originally written by @vercel[bot] on GitHub.
The latest updates on your projects. Learn more about Vercel for GitHub.
| Project | Deployment | Actions | Updated (UTC) |
|---|---|---|---|
| voxlen | Preview, Comment | Jun 12, 2026 12:10pm |
Cross-repo impact
See what breaks downstream if this PR merges.
⮌ Merged
This pull request was merged into main.
c comment · e edit title · m merge · a approve · r request changes · ? shortcuts
Originally written by @ccantynz-alt on GitHub.
Imported from https://github.com/ccantynz-alt/voxlen/pull/50
Summary
Three bugs affecting users who connect via Voxlen account key (no BYOK):
translate_textin Rust called Anthropic directly usingapi_keyfrom grammar config, which isNonewhen a Voxlen account key is set. Now checksvoxlen_api_keyfirst and proxies through new/api/translateendpoint./api/translateserverless endpoint — mirrors the grammar endpoint pattern: verifies Voxlen token, then calls Claude Haiku for translation. Supports all 20 languages already in the desktop app.preserve_toneignored in grammar proxy — Rust client sendspreserve_tone(snake_case) but server only readpreserveTone(camelCase). Fixed to accept both.useGoogleLogindirect call replaced withuseGoogleSignInshared hook in SEOPage.Test plan
https://claude.ai/code/session_011MFNHeFKrhfuSrEYVgrdyr
Generated by Claude Code