From 05da183c29a573f6055712779aec974f63288161 Mon Sep 17 00:00:00 2001 From: Pandipipas <62224708+Pandipipas@users.noreply.github.com> Date: Tue, 17 Feb 2026 18:22:25 +0100 Subject: [PATCH] chore(players): translate remaining startgg labels to english --- src/dashboard/scoreko-dev/views/Players.vue | 58 ++++++++++----------- src/extension/startgg.ts | 16 +++--- 2 files changed, 37 insertions(+), 37 deletions(-) diff --git a/src/dashboard/scoreko-dev/views/Players.vue b/src/dashboard/scoreko-dev/views/Players.vue index ae99327..deec974 100644 --- a/src/dashboard/scoreko-dev/views/Players.vue +++ b/src/dashboard/scoreko-dev/views/Players.vue @@ -275,13 +275,13 @@ const checkOAuthStatus = async () => { oauthLoading.value = false; clearOAuthPolling(); oauthSessionId.value = ''; - tournamentsError.value = status.error || 'No se pudo completar el login OAuth con start.gg.'; + tournamentsError.value = status.error || 'Could not complete OAuth login with start.gg.'; } } catch (error) { oauthLoading.value = false; clearOAuthPolling(); oauthSessionId.value = ''; - tournamentsError.value = error instanceof Error ? error.message : 'No se pudo verificar el estado OAuth.'; + tournamentsError.value = error instanceof Error ? error.message : 'Could not verify OAuth status.'; } }; @@ -300,7 +300,7 @@ const connectWithStartGGOAuth = async () => { }, 1500); } catch (error) { oauthLoading.value = false; - tournamentsError.value = error instanceof Error ? error.message : 'No se pudo iniciar OAuth con start.gg.'; + tournamentsError.value = error instanceof Error ? error.message : 'Could not start OAuth with start.gg.'; } }; @@ -325,7 +325,7 @@ const saveManualToken = () => { const loadRecentTournaments = async () => { const token = startGGToken.value.trim(); if (!token) { - tournamentsError.value = 'Añade tu token de start.gg para cargar torneos.'; + tournamentsError.value = 'Add your start.gg token to load tournaments.'; recentTournaments.value = []; return; } @@ -338,10 +338,10 @@ const loadRecentTournaments = async () => { }); recentTournaments.value = tournaments; if (!tournaments.length) { - tournamentsError.value = 'No hay torneos recientes para esta cuenta.'; + tournamentsError.value = 'There are no recent tournaments for this account.'; } } catch (error) { - tournamentsError.value = error instanceof Error ? error.message : 'No se pudieron cargar torneos.'; + tournamentsError.value = error instanceof Error ? error.message : 'Could not load tournaments.'; recentTournaments.value = []; } finally { loadingTournaments.value = false; @@ -365,7 +365,7 @@ const openStartGGImportDialog = async (tournament: StartGGTournament) => { startGGPlayers.value = importedPlayers; selectedStartGGPlayerIds.value = importedPlayers.map((player) => player.id); } catch (error) { - const message = error instanceof Error ? error.message : 'No se pudieron cargar jugadores'; + const message = error instanceof Error ? error.message : 'Could not load players'; window.alert(message); isImportDialogOpen.value = false; } finally { @@ -599,7 +599,7 @@ onBeforeUnmount(() => { StartGG
- Conecta por OAuth (recomendado) o pega tu token personal para cargar tus torneos creados o donde eres admin. Si aparece "Client authentication failed", revisa que en config uses el Client ID/Secret de un OAuth App de start.gg. + Connect via OAuth (recommended) or paste your personal token to load tournaments you created or administrate. If you see "Client authentication failed", verify your config uses the Client ID/Secret from a start.gg OAuth App.
@@ -607,7 +607,7 @@ onBeforeUnmount(() => { v-if="!hasStartGGTokenConfigured" color="primary" icon="login" - label="Conectar con start.gg" + label="Connect with start.gg" :loading="oauthLoading" @click="connectWithStartGGOAuth" /> @@ -616,7 +616,7 @@ onBeforeUnmount(() => { outline color="positive" icon="check_circle" - label="Conectado" + label="Connected" class="startgg-connected-btn" @click="openManualTokenDialog" /> @@ -626,7 +626,7 @@ onBeforeUnmount(() => { outline color="white" icon="vpn_key" - label="Usar API personal" + label="Use personal API" @click="openManualTokenDialog" />
@@ -663,7 +663,7 @@ onBeforeUnmount(() => { input-debounce="0" clearable dense - label="Torneo" + label="Tournament" class="players-underlined-field" @filter="filterTournaments" > @@ -688,10 +688,10 @@ onBeforeUnmount(() => { unelevated round icon="person_add" - aria-label="Importar jugadores" + aria-label="Import players" @click="openSelectedTournamentImportDialog" > - Importar jugadores + Import players
@@ -704,24 +704,24 @@ onBeforeUnmount(() => {
- API personal de start.gg + Personal start.gg API
- Si OAuth falla, puedes crear tu token personal manualmente con estos pasos: + If OAuth fails, you can create your personal token manually with these steps:
    -
  1. Ir a https://start.gg/admin/profile/developer
  2. -
  3. Iniciar sesión con tu cuenta
  4. -
  5. De los 3 access tokens, clicar en Third Party
  6. -
  7. Crear uno nuevo y cubrir la descripción con el nombre que quieras
  8. -
  9. Copiar el token generado y pegarlo en Scoreko
  10. +
  11. Go to https://start.gg/admin/profile/developer
  12. +
  13. Sign in with your account
  14. +
  15. From the 3 access tokens, click Third Party
  16. +
  17. Create a new one and fill the description with any name you want
  18. +
  19. Copy the generated token and paste it into Scoreko
{ @@ -754,7 +754,7 @@ onBeforeUnmount(() => {
- Importar desde {{ importingTournament?.name || 'start.gg' }} + Import from {{ importingTournament?.name || 'start.gg' }}
@@ -764,7 +764,7 @@ onBeforeUnmount(() => { class="row items-center q-gutter-sm" > - Cargando inscritos... + Loading participants...
{ diff --git a/src/extension/startgg.ts b/src/extension/startgg.ts index 04f8c37..6c3282d 100644 --- a/src/extension/startgg.ts +++ b/src/extension/startgg.ts @@ -193,7 +193,7 @@ const renderCallbackHtml = (title: string, message: string) => `

${title}

${message}

-

Puedes cerrar esta pestaña y volver a Scoreko.

+

You can close this tab and return to Scoreko.

`; @@ -282,19 +282,19 @@ const ensureOAuthCallbackServer = async (oauthConfig: OAuthConfig) => { const session = Array.from(oauthSessions.values()).find((candidate) => candidate.state === state); if (!session) { - respondWithCallbackHtml(res, 400, 'OAuth inválido', 'No se encontró una sesión activa para esta autorización.'); + respondWithCallbackHtml(res, 400, 'Invalid OAuth', 'No active session was found for this authorization.'); return; } if (session.expiresAt <= Date.now()) { updateOAuthSession(session.sessionId, { status: 'expired' }); - respondWithCallbackHtml(res, 400, 'Sesión expirada', 'La sesión OAuth expiró. Vuelve a iniciar el proceso desde Scoreko.'); + respondWithCallbackHtml(res, 400, 'Session expired', 'The OAuth session expired. Start the process again from Scoreko.'); return; } if (error) { updateOAuthSession(session.sessionId, { status: 'error', error }); - respondWithCallbackHtml(res, 400, 'OAuth cancelado', `start.gg devolvió el error: ${error}`); + respondWithCallbackHtml(res, 400, 'OAuth canceled', `start.gg returned this error: ${error}`); return; } @@ -303,7 +303,7 @@ const ensureOAuthCallbackServer = async (oauthConfig: OAuthConfig) => { status: 'error', error: 'Missing authorization code', }); - respondWithCallbackHtml(res, 400, 'OAuth incompleto', 'No se recibió un código de autorización.'); + respondWithCallbackHtml(res, 400, 'Incomplete OAuth', 'No authorization code was received.'); return; } @@ -316,7 +316,7 @@ const ensureOAuthCallbackServer = async (oauthConfig: OAuthConfig) => { updateOAuthSession(session.sessionId, { status: 'error', error: message }); }); - respondWithCallbackHtml(res, 200, 'Autorización recibida', 'Se recibió tu autorización. Finalizando el login en segundo plano...'); + respondWithCallbackHtml(res, 200, 'Authorization received', 'Your authorization was received. Finishing sign-in in the background...'); }); await new Promise((resolve, reject) => { @@ -333,14 +333,14 @@ const ensureOAuthCallbackServer = async (oauthConfig: OAuthConfig) => { nodecg.listenFor('startgg:createOAuthSession', async (_payload: unknown, ack) => { const oauthConfig = getOAuthConfig(); if (!oauthConfig) { - sendAck(ack, 'OAuth no está configurado en esta instalación (faltan startggClientId/startggClientSecret). Usa el Client ID y Client Secret del OAuth app de start.gg.'); + sendAck(ack, 'OAuth is not configured in this installation (missing startggClientId/startggClientSecret). Use the Client ID and Client Secret from a start.gg OAuth app.'); return; } try { await ensureOAuthCallbackServer(oauthConfig); } catch (serverError) { - const message = serverError instanceof Error ? serverError.message : 'No se pudo iniciar el callback OAuth local'; + const message = serverError instanceof Error ? serverError.message : 'Could not start the local OAuth callback'; sendAck(ack, message); return; }