Refactoring translator to use "_" instead of "translator._".
This is shorter and pollutes less the code.
This commit is contained in:
committed by
Alexis Faizeau
parent
1789f36a63
commit
51c3f1d972
@@ -2,7 +2,7 @@
|
||||
import { fly } from "svelte/transition";
|
||||
import { userIsAdminStore, limitMapStore } from "../../Stores/GameStore";
|
||||
import { ADMIN_URL } from "../../Enum/EnvironmentVariable";
|
||||
import { translator } from "../../Translator/Translator";
|
||||
import { _ } from "../../Translator/Translator";
|
||||
|
||||
const upgradeLink = ADMIN_URL + "/pricing";
|
||||
const registerLink = ADMIN_URL + "/second-step-register";
|
||||
@@ -10,17 +10,17 @@
|
||||
|
||||
<main class="warningMain" transition:fly={{ y: -200, duration: 500 }}>
|
||||
{#if $userIsAdminStore}
|
||||
<h2>{translator._("warning.title")}</h2>
|
||||
<h2>{_("warning.title")}</h2>
|
||||
<p>
|
||||
{translator._("warning.content", { upgradeLink })}
|
||||
{_("warning.content", { upgradeLink })}
|
||||
</p>
|
||||
{:else if $limitMapStore}
|
||||
<p>
|
||||
This map is available for 2 days. You can register your domain <a href={registerLink}>here</a>!
|
||||
</p>
|
||||
{:else}
|
||||
<h2>{translator._("warning.title")}</h2>
|
||||
<p>{translator._("warning.limit")}</p>
|
||||
<h2>{_("warning.title")}</h2>
|
||||
<p>{_("warning.limit")}</p>
|
||||
{/if}
|
||||
</main>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user