Refactoring translator to use "_" instead of "translator._".
This is shorter and pollutes less the code.
This commit is contained in:
parent
1789f36a63
commit
51c3f1d972
34 changed files with 174 additions and 190 deletions
|
@ -4,7 +4,7 @@
|
|||
import { AdminMessageEventTypes } from "../../Connexion/AdminMessagesService";
|
||||
import uploadFile from "../images/music-file.svg";
|
||||
import type { PlayGlobalMessageInterface } from "../../Connexion/ConnexionModels";
|
||||
import { translator } from "../../Translator/Translator";
|
||||
import { _ } from "../../Translator/Translator";
|
||||
|
||||
interface EventTargetFiles extends EventTarget {
|
||||
files: Array<File>;
|
||||
|
@ -77,7 +77,7 @@
|
|||
<img
|
||||
class="nes-pointer"
|
||||
src={uploadFile}
|
||||
alt={translator._("menu.global-audio.upload-info")}
|
||||
alt={_("menu.global-audio.upload-info")}
|
||||
on:click|preventDefault={() => {
|
||||
fileInput.click();
|
||||
}}
|
||||
|
@ -86,7 +86,7 @@
|
|||
<p>{fileName} : {fileSize}</p>
|
||||
{/if}
|
||||
{#if errorFile}
|
||||
<p class="err">{translator._("menu.global-audio.error")}</p>
|
||||
<p class="err">{_("menu.global-audio.error")}</p>
|
||||
{/if}
|
||||
<input
|
||||
type="file"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue