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
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user