Prepare for ICU migration

This commit is contained in:
Jamie Kyle 2023-03-27 16:37:39 -07:00 committed by GitHub
parent d0f17a1398
commit 2781e621ad
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
62 changed files with 550 additions and 414 deletions

View file

@ -66,7 +66,11 @@ export class GroupNotification extends React.Component<Props> {
switch (type) {
case 'name':
return (
<Intl i18n={i18n} id="titleIsNow" components={[newName || '']} />
<Intl
i18n={i18n}
id="titleIsNow"
components={{ name: newName || '' }}
/>
);
case 'avatar':
return <Intl i18n={i18n} id="updatedGroupAvatar" />;
@ -83,13 +87,13 @@ export class GroupNotification extends React.Component<Props> {
<Intl
i18n={i18n}
id="joinedTheGroup"
components={[otherPeopleWithCommas]}
components={{ name: otherPeopleWithCommas }}
/>
) : (
<Intl
i18n={i18n}
id="multipleJoinedTheGroup"
components={[otherPeopleWithCommas]}
components={{ names: otherPeopleWithCommas }}
/>
)}
</>
@ -114,13 +118,13 @@ export class GroupNotification extends React.Component<Props> {
<Intl
id="multipleLeftTheGroup"
i18n={i18n}
components={[otherPeopleWithCommas]}
components={{ name: otherPeopleWithCommas }}
/>
) : (
<Intl
id="leftTheGroup"
i18n={i18n}
components={[otherPeopleWithCommas]}
components={{ name: otherPeopleWithCommas }}
/>
);
case 'general':
@ -147,7 +151,7 @@ export class GroupNotification extends React.Component<Props> {
<Intl
i18n={i18n}
id="updatedTheGroup"
components={[<ContactName title={from.title} />]}
components={{ name: <ContactName title={from.title} /> }}
/>
);