Skip to content

feat: translate the app into 16 languages - #81

Merged
devodii merged 8 commits into
mainfrom
feat/translations
Nov 20, 2026
Merged

devodii merged 8 commits into
mainfrom
feat/translations

Conversation

@devodii

@devodii devodii commented Nov 20, 2026

Copy link
Copy Markdown
Owner

Closes #35.

What this does

  • A language menu in the footer, grouped by Latin America, Europe and Asia, with 16 languages including Portuguese (Portugal) and Portuguese (Brasil).
  • The whole app is translated by Google Translate, so there are no message files and no strings to keep in sync. New pages are translated the moment they ship.
  • The choice is remembered, applies without a reload, and returning to English restores the page.
  • The AI chat answers in the selected language.

Screenshots

Language menu

Portuguese (Portugal)

German

Vietnamese

Chat in Japanese

How it works

  • The Google widget is hidden and driven from code, so the menu is our own component built on the design system.
  • Names, ids, project descriptions, chat and the Wrapped poster are marked translate="no", so a project called alloy-stellar is never translated.
  • The chat request carries the language code, and the API adds one instruction to the prompt when it is not English. A malformed code is rejected.

Checked

  • Six languages across the home, contributors, integration and project pages, including navigating between pages while translated, with no layout overflow added.
  • 189 API tests, ruff, tsc, prettier, oxlint and the build pass.

Notes

  • The issue asked for i18next and a CI check for hardcoded strings. This replaces both, because there is nothing hardcoded to check.
  • Translations are machine made and the page loads Google's script. A switch to message files stays possible later.
  • The mobile layout already overflows by about 90px in English, and that is not part of this PR.

@vercel

vercel Bot commented Nov 20, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hackproof Ready Ready Preview Nov 20, 2026 11:23am UTC

Request Review

@devodii
devodii merged commit 00cd42b into main Nov 20, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add Google Translate

1 participant