Update i18n eslint rule to validate missing/extra icu params
This commit is contained in:
parent
4e6c3ba9df
commit
8ca192a48d
16 changed files with 449 additions and 66 deletions
|
@ -50,28 +50,23 @@ function UnsupportedMessageContents({ canProcessNow, contact, i18n }: Props) {
|
|||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Intl
|
||||
id="icu:Message--from-me-unsupported-message"
|
||||
components={{ contact: contactName }}
|
||||
i18n={i18n}
|
||||
/>
|
||||
);
|
||||
return <Intl id="icu:Message--from-me-unsupported-message" i18n={i18n} />;
|
||||
}
|
||||
if (canProcessNow) {
|
||||
return (
|
||||
<Intl
|
||||
id="icu:Message--from-me-unsupported-message-ask-to-resend"
|
||||
components={{ contact: contactName }}
|
||||
i18n={i18n}
|
||||
/>
|
||||
);
|
||||
}
|
||||
return (
|
||||
<Intl
|
||||
id="icu:Message--from-me-unsupported-message"
|
||||
components={{ contact: contactName }}
|
||||
id="icu:Message--unsupported-message"
|
||||
i18n={i18n}
|
||||
components={{
|
||||
contact: contactName,
|
||||
}}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue