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

@ -1,6 +1,7 @@
<script lang="ts">
import { showReportScreenStore, userReportEmpty } from "../../Stores/ShowReportScreenStore";
import { gameManager } from "../../Phaser/Game/GameManager";
import { translator } from "../../Translator/Translator";
export let userUUID: string | undefined;
let reportMessage: string;
@ -22,18 +23,20 @@
</script>
<div class="report-container-main">
<h3>Report</h3>
<p>Send a report message to the administrators of this room. They may later ban this user.</p>
<h3>{translator._("report.title")}</h3>
<p>{translator._("report.message")}</p>
<form>
<section>
<label>
<span>Your message: </span>
<span>{translator._("report.message.title")}</span>
<textarea type="text" class="nes-textarea" bind:value={reportMessage} />
</label>
<p hidden={hiddenError}>Report message cannot to be empty.</p>
<p hidden={hiddenError}>{translator._("report.message.empty")}</p>
</section>
<section>
<button type="submit" class="nes-btn is-error" on:click={submitReport}>Report this user</button>
<button type="submit" class="nes-btn is-error" on:click={submitReport}
>{translator._("report.submit")}</button
>
</section>
</form>
</div>