CodeIssuesPull RequestsActionsSecurityInsights
✨ AI
More
Settings

fix: translation + grammar proxy bugs for Voxlen account users #4751

Merged⚡ AI-generatedXSccantynz wants to mergeclaude/improvements-20260612cmainopened Jun 12, 20260/3 tasks
ccantynzcommented Jun 12, 2026

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):

  • Translation broken for Voxlen account userstranslate_text in Rust called Anthropic directly using api_key from grammar config, which is None when a Voxlen account key is set. Now checks voxlen_api_key first and proxies through new /api/translate endpoint.
  • New /api/translate serverless 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_tone ignored in grammar proxy — Rust client sends preserve_tone (snake_case) but server only read preserveTone (camelCase). Fixed to accept both.
  • Last useGoogleLogin direct call replaced with useGoogleSignIn shared hook in SEOPage.

Test plan

  • Translation feature works when connected via Voxlen account key (no Anthropic key set)
  • Grammar preserve-tone option takes effect in proxy mode
  • SEO pages still show Google sign-in button

https://claude.ai/code/session_011MFNHeFKrhfuSrEYVgrdyr


Generated by Claude Code

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 Ready Ready Preview, Comment Jun 12, 2026 12:10pm

Cross-repo impact

See what breaks downstream if this PR merges.

Analyze →
⮌ Merged

This pull request was merged into main.

c comment · e edit title · m merge · a approve · r request changes · ? shortcuts