Add en-US translations

This commit is contained in:
Nolway 2021-12-19 16:01:51 +01:00 committed by Alexis Faizeau
parent 31b92da6ce
commit bd01a35cc6
45 changed files with 539 additions and 158 deletions

View file

@ -2,6 +2,7 @@
import type { Game } from "../../Phaser/Game/Game";
import { CustomizeScene, CustomizeSceneName } from "../../Phaser/Login/CustomizeScene";
import { activeRowStore } from "../../Stores/CustomCharacterStore";
import { translator } from "../../Translator/Translator";
export let game: Game;
@ -34,7 +35,7 @@
<form class="customCharacterScene">
<section class="text-center">
<h2>Customize your WOKA</h2>
<h2>{translator._("custom-character.title")}</h2>
</section>
<section class="action action-move">
<button
@ -53,26 +54,29 @@
<section class="action">
{#if $activeRowStore === 0}
<button type="submit" class="customCharacterSceneFormBack nes-btn" on:click|preventDefault={previousScene}
>Return</button
>{translator._("custom-character.navigation.return")}</button
>
{/if}
{#if $activeRowStore !== 0}
<button type="submit" class="customCharacterSceneFormBack nes-btn" on:click|preventDefault={selectUp}
>Back <img src="resources/objects/arrow_up_black.png" alt="" /></button
>{translator._("custom-character.navigation.back")}
<img src="resources/objects/arrow_up_black.png" alt="" /></button
>
{/if}
{#if $activeRowStore === 5}
<button
type="submit"
class="customCharacterSceneFormSubmit nes-btn is-primary"
on:click|preventDefault={finish}>Finish</button
on:click|preventDefault={finish}>{translator._("custom-character.navigation.finish")}</button
>
{/if}
{#if $activeRowStore !== 5}
<button
type="submit"
class="customCharacterSceneFormSubmit nes-btn is-primary"
on:click|preventDefault={selectDown}>Next <img src="resources/objects/arrow_down.png" alt="" /></button
on:click|preventDefault={selectDown}
>{translator._("custom-character.navigation.next")}
<img src="resources/objects/arrow_down.png" alt="" /></button
>
{/if}
</section>