Add context to `Unmute` and `Mute` strings (#5340)

Co-authored-by: Hailey <me@haileyok.com>
zio/dev^2
surfdude29 2024-09-15 20:11:44 +01:00 committed by GitHub
parent f8658f0795
commit 2a344d8f12
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 5 additions and 1 deletions

View File

@ -160,7 +160,11 @@ function VideoControls({
<ControlButton
onPress={toggleMuted}
label={muted ? _(msg`Unmute`) : _(msg`Mute`)}
label={
muted
? _(msg({message: `Unmute`, context: 'video'}))
: _(msg({message: `Mute`, context: 'video'}))
}
accessibilityHint={_(msg`Tap to toggle sound`)}
style={{right: 6}}>
{muted ? (