mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2026-04-20 16:38:21 +01:00
Update i18n eslint rule to validate missing/extra icu params
This commit is contained in:
@@ -52,9 +52,7 @@ export function DeliveryIssueDialog(props: PropsType): React.ReactElement {
|
||||
</>
|
||||
);
|
||||
|
||||
const intlComponents = {
|
||||
sender: <Emojify text={sender.title} />,
|
||||
};
|
||||
const senderTitle = <Emojify text={sender.title} />;
|
||||
|
||||
return (
|
||||
<Modal
|
||||
@@ -80,13 +78,13 @@ export function DeliveryIssueDialog(props: PropsType): React.ReactElement {
|
||||
{inGroup ? (
|
||||
<Intl
|
||||
id="icu:DeliveryIssue--summary--group"
|
||||
components={intlComponents}
|
||||
components={{ sender: senderTitle }}
|
||||
i18n={i18n}
|
||||
/>
|
||||
) : (
|
||||
<Intl
|
||||
id="icu:DeliveryIssue--summary"
|
||||
components={intlComponents}
|
||||
components={{ sender: senderTitle }}
|
||||
i18n={i18n}
|
||||
/>
|
||||
)}
|
||||
|
||||
Reference in New Issue
Block a user