mirror of
https://github.com/Pandipipas/scoreko-dev.git
synced 2026-06-06 03:32:06 +00:00
chore(players): translate remaining startgg labels to english
This commit is contained in:
@@ -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(() => {
|
||||
<span>StartGG</span>
|
||||
</div>
|
||||
<div class="text-caption q-mb-md">
|
||||
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.
|
||||
</div>
|
||||
<div class="row q-col-gutter-sm items-center">
|
||||
<div class="col-auto">
|
||||
@@ -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"
|
||||
/>
|
||||
</div>
|
||||
@@ -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"
|
||||
>
|
||||
<QTooltip>Importar jugadores</QTooltip>
|
||||
<QTooltip>Import players</QTooltip>
|
||||
</QBtn>
|
||||
</div>
|
||||
</div>
|
||||
@@ -704,24 +704,24 @@ onBeforeUnmount(() => {
|
||||
<QCard class="players-dialog">
|
||||
<QCardSection>
|
||||
<div class="text-h6">
|
||||
API personal de start.gg
|
||||
Personal start.gg API
|
||||
</div>
|
||||
</QCardSection>
|
||||
<QSeparator />
|
||||
<QCardSection>
|
||||
<div class="text-body2 q-mb-sm">
|
||||
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:
|
||||
</div>
|
||||
<ol class="q-pl-md q-mb-md manual-token-steps">
|
||||
<li>Ir a https://start.gg/admin/profile/developer</li>
|
||||
<li>Iniciar sesión con tu cuenta</li>
|
||||
<li>De los 3 access tokens, clicar en <strong>Third Party</strong></li>
|
||||
<li>Crear uno nuevo y cubrir la descripción con el nombre que quieras</li>
|
||||
<li>Copiar el token generado y pegarlo en Scoreko</li>
|
||||
<li>Go to https://start.gg/admin/profile/developer</li>
|
||||
<li>Sign in with your account</li>
|
||||
<li>From the 3 access tokens, click <strong>Third Party</strong></li>
|
||||
<li>Create a new one and fill the description with any name you want</li>
|
||||
<li>Copy the generated token and paste it into Scoreko</li>
|
||||
</ol>
|
||||
<QInput
|
||||
v-model="manualTokenDraft"
|
||||
label="Pega tu token personal"
|
||||
label="Paste your personal token"
|
||||
dense
|
||||
outlined
|
||||
type="password"
|
||||
@@ -731,19 +731,19 @@ onBeforeUnmount(() => {
|
||||
<QCardActions align="right">
|
||||
<QBtn
|
||||
flat
|
||||
label="Cancelar"
|
||||
label="Cancel"
|
||||
color="secondary"
|
||||
@click="isManualTokenDialogOpen = false"
|
||||
/>
|
||||
<QBtn
|
||||
flat
|
||||
color="negative"
|
||||
label="Borrar token"
|
||||
label="Delete token"
|
||||
@click="manualTokenDraft = ''; saveManualToken()"
|
||||
/>
|
||||
<QBtn
|
||||
color="primary"
|
||||
label="Guardar token"
|
||||
label="Save token"
|
||||
@click="saveManualToken"
|
||||
/>
|
||||
</QCardActions>
|
||||
@@ -754,7 +754,7 @@ onBeforeUnmount(() => {
|
||||
<QCard class="players-dialog">
|
||||
<QCardSection>
|
||||
<div class="text-h6">
|
||||
Importar desde {{ importingTournament?.name || 'start.gg' }}
|
||||
Import from {{ importingTournament?.name || 'start.gg' }}
|
||||
</div>
|
||||
</QCardSection>
|
||||
<QSeparator />
|
||||
@@ -764,7 +764,7 @@ onBeforeUnmount(() => {
|
||||
class="row items-center q-gutter-sm"
|
||||
>
|
||||
<QSpinner />
|
||||
<span>Cargando inscritos...</span>
|
||||
<span>Loading participants...</span>
|
||||
</div>
|
||||
<div v-else>
|
||||
<QOptionGroup
|
||||
@@ -781,13 +781,13 @@ onBeforeUnmount(() => {
|
||||
<QCardActions align="right">
|
||||
<QBtn
|
||||
flat
|
||||
label="Cancelar"
|
||||
label="Cancel"
|
||||
color="secondary"
|
||||
@click="isImportDialogOpen = false"
|
||||
/>
|
||||
<QBtn
|
||||
color="primary"
|
||||
label="Importar seleccionados"
|
||||
label="Import selected"
|
||||
:disable="!selectedStartGGPlayerIds.length"
|
||||
@click="importSelectedStartGGPlayers"
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user