fix live camera view i18n

This commit is contained in:
Josh Hawkins 2025-05-05 16:13:19 -05:00
parent c923d00254
commit bae309db09

View File

@ -531,11 +531,9 @@ export default function LiveCameraView({
Icon={mic ? FaMicrophone : FaMicrophoneSlash} Icon={mic ? FaMicrophone : FaMicrophoneSlash}
isActive={mic} isActive={mic}
title={ title={
(mic mic
? t("button.disable", { ns: "common" }) ? t("twoWayTalk.disable", { ns: "views/live" })
: t("button.enable", { ns: "common" })) + : t("twoWayTalk.enable", { ns: "views/live" })
" " +
t("button.twoWayTalk", { ns: "common" })
} }
onClick={() => { onClick={() => {
setMic(!mic); setMic(!mic);
@ -553,11 +551,9 @@ export default function LiveCameraView({
Icon={audio ? GiSpeaker : GiSpeakerOff} Icon={audio ? GiSpeaker : GiSpeakerOff}
isActive={audio ?? false} isActive={audio ?? false}
title={ title={
(audio audio
? t("button.disable", { ns: "common" }) ? t("cameraAudio.disable", { ns: "views/live" })
: t("button.enable", { ns: "common" })) + : t("cameraAudio.enable", { ns: "views/live" })
" " +
t("button.cameraAudio", { ns: "common" })
} }
onClick={() => setAudio(!audio)} onClick={() => setAudio(!audio)}
disabled={!cameraEnabled} disabled={!cameraEnabled}