Skip to content

Commit

Permalink
Fix text without not multilanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienBounoir committed Nov 20, 2024
1 parent 5b213ef commit 3be6c39
Show file tree
Hide file tree
Showing 5 changed files with 29 additions and 10 deletions.
7 changes: 6 additions & 1 deletion src/lib/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
"createNewSetOfCards": "Create a new deck of cards",
"preview": "Preview",
"deckName": "Deck name",
"error": "An error occurred while creating the poker planning."
"error": "An error occurred while creating the poker planning.",
"advancedSettings": "Advanced Settings",
"pokerPlanningColor": "Planning poker color",
"autoRevealResults": "Auto Reveal Results",
"cancel": "Cancel",
"save": "Save"
},
"common": {
"pokerPlanningDoesntExist": "This poker planning does not exist.",
Expand Down
7 changes: 6 additions & 1 deletion src/lib/i18n/locales/es.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
"createNewSetOfCards": "Crear un nuevo mazo de cartas",
"preview": "Vista previa",
"deckName": "Nombre del mazo",
"error": "Se produjo un error al crear el poker planning."
"error": "Se produjo un error al crear el poker planning.",
"advancedSettings": "Configuración avanzada",
"pokerPlanningColor": "Color del poker planning",
"autoRevealResults": "Revelar resultados automáticamente",
"cancel": "Cancelar",
"save": "Guardar"
},
"common": {
"pokerPlanningDoesntExist": "Este poker planning no existe.",
Expand Down
7 changes: 6 additions & 1 deletion src/lib/i18n/locales/fr.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
"createNewSetOfCards": "Créer un nouveau jeu de cartes",
"preview": "Aperçu",
"deckName": "Nom du jeu de cartes",
"error": "Une erreur s'est produite lors de la création du poker planning."
"error": "Une erreur s'est produite lors de la création du poker planning.",
"advancedSettings": "Paramètres avancés",
"pokerPlanningColor": "Couleur du planning poker",
"autoRevealResults": "Résultats automatiques",
"cancel": "Annuler",
"save": "Sauvegarder"
},
"common": {
"pokerPlanningDoesntExist": "Ce poker planning n'existe pas.",
Expand Down
7 changes: 6 additions & 1 deletion src/lib/i18n/locales/it.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,12 @@
"createNewSetOfCards": "Crea un nuovo mazzo di carte",
"preview": "Anteprima",
"deckName": "Nome del mazzo",
"error": "Si è verificato un errore durante la creazione del poker planning."
"error": "Si è verificato un errore durante la creazione del poker planning.",
"advancedSettings": "Impostazioni avanzate",
"pokerPlanningColor": "Colore del poker planning",
"autoRevealResults": "Rivelazione automatica dei risultati",
"cancel": "Annulla",
"save": "Salva"
},
"common": {
"pokerPlanningDoesntExist": "Questo poker planning non esiste.",
Expand Down
11 changes: 5 additions & 6 deletions src/routes/create/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@
on:click={() => (advancedSettings = !advancedSettings)}
>
<p>
Advanced Settings
{$_('CreatePage.advancedSettings')}
<svg width="15" viewBox="0 0 56 34" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M3 31L28 6L53 31" stroke-width="6" />
</svg>
Expand All @@ -230,7 +230,7 @@
</div>
<div class="color-container">
<p>Poker planning color</p>
<p>{$_('CreatePage.pokerPlanningColor')}</p>
<label style="background-color: {advancedSettingsObject.hexcode}">
<input type="color" bind:value={advancedSettingsObject.hexcode} />
</label>
Expand All @@ -239,7 +239,7 @@
<div class="auto-reveal-container">
<Switch
bind:value={advancedSettingsObject.autoReveal}
label="Auto Reveal Results"
label={$_('CreatePage.autoRevealResults')}
fontSize={16}
/>
</div>
Expand Down Expand Up @@ -291,10 +291,9 @@
</div>
<div class="button-container">
<button on:click={goToCreate}>Cancel</button>
<button on:click={goToCreate}>{$_('CreatePage.cancel')}</button>
<button on:click={addNewDeck} disabled={!customCard.name || customCard.cards.length < 2}
>Save</button
>
>{$_('CreatePage.save')}</button>
</div>
</main>
{/if}
Expand Down

0 comments on commit 3be6c39

Please sign in to comment.