From f6b125e8c2ec8511143bc9ef6483e877404c6319 Mon Sep 17 00:00:00 2001 From: diegosouzapw Date: Wed, 11 Mar 2026 20:45:45 -0300 Subject: [PATCH] fix(ui): translate hardcoded PT-BR text in OAuthModal to English (#314) Two strings were hardcoded in Portuguese regardless of the user's language setting: 1. The redirect_uri_mismatch error message (line ~101) 2. The remote access info banner for Google OAuth providers (line ~515) Both are now in English. The anchor href is updated from '#oauth-em-servidor-remoto' to '#oauth-on-a-remote-server' to match the EN README anchor. --- src/shared/components/OAuthModal.tsx | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/shared/components/OAuthModal.tsx b/src/shared/components/OAuthModal.tsx index 483f7a6066..b0d28ddec8 100644 --- a/src/shared/components/OAuthModal.tsx +++ b/src/shared/components/OAuthModal.tsx @@ -98,12 +98,12 @@ export default function OAuthModal({ GOOGLE_OAUTH_PROVIDERS.has(provider) ) { setError( - "redirect_uri_mismatch: As credenciais padrão do Google OAuth só funcionam em localhost. " + - "Para uso remoto, configure suas próprias credenciais OAuth nas variáveis de ambiente: " + + "redirect_uri_mismatch: The default Google OAuth credentials only work on localhost. " + + "For remote use, configure your own OAuth credentials via environment variables: " + (provider === "antigravity" - ? "ANTIGRAVITY_OAUTH_CLIENT_ID e ANTIGRAVITY_OAUTH_CLIENT_SECRET" - : "GEMINI_OAUTH_CLIENT_ID e GEMINI_OAUTH_CLIENT_SECRET") + - ". Veja o README, seção 'OAuth em Servidor Remoto'." + ? "ANTIGRAVITY_OAUTH_CLIENT_ID and ANTIGRAVITY_OAUTH_CLIENT_SECRET" + : "GEMINI_OAUTH_CLIENT_ID and GEMINI_OAUTH_CLIENT_SECRET") + + ". See the README section 'OAuth on a Remote Server'." ); } else { setError(err.message); @@ -512,17 +512,17 @@ export default function OAuthModal({ warning - Acesso remoto + Google OAuth: As credenciais padrão só aceitam - redirect para localhost. Após autorizar, o browser tentará abrir - localhost — copie essa URL completa e cole abaixo. Para uso - totalmente remoto sem esse passo manual,{" "} + Remote access + Google OAuth: The default credentials only accept + redirects to localhost. After authorizing, your browser will try to + open localhost — copy that full URL and paste it below. For fully + remote use without this manual step,{" "} - configure suas próprias credenciais OAuth + configure your own OAuth credentials .