Add new eslint plugin to check for valid i18n keys

This commit is contained in:
Jamie Kyle 2023-01-05 14:43:33 -08:00 committed by GitHub
parent 465b4cb0fb
commit 569b6e14a6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
39 changed files with 447 additions and 78 deletions

View file

@ -91,19 +91,19 @@ export function CallingHeader({
{isGroupCall && participantCount > 2 && toggleSpeakerView && (
<div className="module-calling-tools__button">
<Tooltip
content={i18n(
content={
isInSpeakerView
? 'calling__switch-view--to-grid'
: 'calling__switch-view--to-speaker'
)}
? i18n('calling__switch-view--to-grid')
: i18n('calling__switch-view--to-speaker')
}
theme={Theme.Dark}
>
<button
aria-label={i18n(
aria-label={
isInSpeakerView
? 'calling__switch-view--to-grid'
: 'calling__switch-view--to-speaker'
)}
? i18n('calling__switch-view--to-grid')
: i18n('calling__switch-view--to-speaker')
}
className={
isInSpeakerView
? 'CallingButton__grid-view'