Refactoring translator to use "_" instead of "translator._".

This is shorter and pollutes less the code.
This commit is contained in:
David Négrier 2022-01-19 09:28:08 +01:00 committed by Alexis Faizeau
parent 1789f36a63
commit 51c3f1d972
34 changed files with 174 additions and 190 deletions

View file

@ -4,7 +4,7 @@
import SoundMeterWidget from "./SoundMeterWidget.svelte";
import { onDestroy } from "svelte";
import { srcObject } from "./Video/utils";
import { translator } from "../Translator/Translator";
import { _ } from "../Translator/Translator";
let stream: MediaStream | null;
@ -33,5 +33,5 @@
<SoundMeterWidget {stream} />
{/if}
</div>
<div class="is-silent" class:hide={isSilent}>{translator._("camera.my.silent-zone")}</div>
<div class="is-silent" class:hide={isSilent}>{_("camera.my.silent-zone")}</div>
</div>