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

@ -13,7 +13,7 @@ import { layoutManagerActionStore, layoutManagerVisibilityStore } from "../Store
import { get } from "svelte/store";
import { localUserStore } from "../Connexion/LocalUserStore";
import { MediaStreamConstraintsError } from "../Stores/Errors/MediaStreamConstraintsError";
import { translator } from "../Translator/Translator";
import { _ } from "../Translator/Translator";
export class MediaManager {
startScreenSharingCallBacks: Set<StartScreenSharingCallback> = new Set<StartScreenSharingCallback>();
@ -30,7 +30,7 @@ export class MediaManager {
layoutManagerActionStore.addAction({
uuid: "cameraAccessDenied",
type: "warning",
message: translator._("warning.access-denied.camera"),
message: _("warning.access-denied.camera"),
callback: () => {
helpCameraSettingsVisibleStore.set(true);
},
@ -51,7 +51,7 @@ export class MediaManager {
layoutManagerActionStore.addAction({
uuid: "screenSharingAccessDenied",
type: "warning",
message: translator._("warning.access-denied.screen-sharing"),
message: _("warning.access-denied.screen-sharing"),
callback: () => {
helpCameraSettingsVisibleStore.set(true);
},