voicebox icon indicating copy to clipboard operation
voicebox copied to clipboard

fix(i18n): add Cloud login translations for es, it, ko

Open acalexanderac opened this issue 4 months ago • 3 comments

Summary

Internationalize the Cloud login UI (added in #812) and fill in missing ROCm GPU translations, bringing all 8 non-English locales (es, fr, it, ja, ko, pt-BR, zh-CN, zh-TW) to full key parity with en.

  • CloudSection.tsx had zero useTranslation/t() calls — titles, toasts, and button labels were hardcoded English strings regardless of the user's selected language. Wired in 25 new settings.general.cloud.* keys and replaced the hardcoded strings with t() calls.
  • fr, ja, pt-BR, zh-CN, zh-TW were missing translations for the settings.general.rocm.* namespace (silently falling back to English).
  • Added the Cloud login translations to es, it, ko as well, so all locales stay consistent.

Verified: key parity 875/875 across all 8 non-English locale files (no missing/extra keys vs en), JSON validates.

Test plan

  • [x] Ran the app locally (just dev-web), switched language to es/it/ko/fr/ja/pt-BR/zh-CN/zh-TW, confirmed the Cloud login section (Settings → General) renders translated instead of falling back to English
  • [x] Scripted key-parity check confirms 875/875 keys across all locale files vs en

Summary by CodeRabbit

  • New Features

    • Added localized Voicebox Cloud settings, including browser sign-in, connection status, account linking, disconnection, and dashboard management.
    • Added ROCm GPU backend settings with download, switching, active-status, update, and removal controls.
    • Added clearer CUDA active-backend status information.
  • Improvements

    • Expanded GPU error messages and updated hardware support guidance.
    • Improved localized wording across supported languages, including a shortcut settings label correction.

acalexanderac avatar Jul 20 '26 01:07 acalexanderac

Hey, I'm Alex!

I added the Spanish (ES) translation — it's my main language, so I was glad to contribute. While double-checking coverage, I also noticed a couple of translation gaps that existed across all languages (not just Spanish): the new "Log in with browser" Cloud section and the AMD ROCm GPU settings were never wired into i18n at all, so they were silently falling back to English everywhere. Went ahead and filled those in too, for every existing locale.

Happy to answer any questions!

acalexanderac avatar Jul 20 '26 01:07 acalexanderac

Review Change Stack

📝 Walkthrough

Walkthrough

CloudSection now renders its user-facing text through i18n keys. Locale files add Voicebox Cloud strings across supported languages, while several GPU locale files add CUDA and ROCm backend text.

Changes

Localization updates

Layer / File(s) Summary
Cloud UI translation flow
app/src/components/ServerTab/CloudSection.tsx, app/src/i18n/locales/*/translation.json
Cloud connection, browser sign-in, disconnection, account, dashboard, toast, and button text now use translated strings across locale catalogs.
GPU backend localization
app/src/i18n/locales/{fr,ja,pt-BR,zh-CN,zh-TW}/translation.json
GPU translations add CUDA active-state text, ROCm backend actions, ROCm deletion errors, and revised footer wording.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title matches the i18n Cloud login translation work, though it omits the broader locale coverage and ROCm GPU updates.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • [ ] Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

coderabbitai[bot] avatar Jul 20 '26 01:07 coderabbitai[bot]

I originally set out to do the Spanish translation, but it looks like that got merged already by another contributor in #798 — props to them, nice work!

While rebasing on top of that, I noticed the Cloud login feature (#812) never got wired up for i18n at all — it's all hardcoded English strings in CloudSection.tsx. Also found a few locales missing the ROCm translations. Figured I'd fix both gaps here instead of letting the ES work go to waste.

Also, i left the Claude Co author mark, since the Korean, Chinese and French Translations are not from my own.

acalexanderac avatar Jul 21 '26 22:07 acalexanderac