Make valid-i18n-keys rule strict and fix most exceptions

This commit is contained in:
Jamie Kyle
2023-03-29 10:15:54 -07:00
committed by GitHub
parent 18a6da310f
commit 11cfcb4e32
36 changed files with 796 additions and 687 deletions

View File

@@ -40,10 +40,9 @@ export function ToastManager({
if (toastType === ToastType.AddingUserToGroup) {
return (
<Toast onClose={hideToast} timeout={SHORT_TIMEOUT}>
{i18n(
'AddUserToAnotherGroupModal__toast--adding-user-to-group',
toast.parameters
)}
{i18n('AddUserToAnotherGroupModal__toast--adding-user-to-group', {
...toast.parameters,
})}
</Toast>
);
}
@@ -107,7 +106,9 @@ export function ToastManager({
if (toastType === ToastType.CannotStartGroupCall) {
return (
<Toast onClose={hideToast}>
{i18n('GroupV2--cannot-start-group-call', toast.parameters)}
{i18n('GroupV2--cannot-start-group-call', {
...toast.parameters,
})}
</Toast>
);
}
@@ -344,10 +345,9 @@ export function ToastManager({
if (toastType === ToastType.UserAddedToGroup) {
return (
<Toast onClose={hideToast}>
{i18n(
'AddUserToAnotherGroupModal__toast--user-added-to-group',
toast.parameters
)}
{i18n('AddUserToAnotherGroupModal__toast--user-added-to-group', {
...toast.parameters,
})}
</Toast>
);
}