Fully migrate to ICU
This commit is contained in:
parent
d4e7177ba6
commit
5e647c55d1
274 changed files with 7948 additions and 1944 deletions
|
@ -68,12 +68,12 @@ export class GroupNotification extends React.Component<Props> {
|
|||
return (
|
||||
<Intl
|
||||
i18n={i18n}
|
||||
id="titleIsNow"
|
||||
id="icu:titleIsNow"
|
||||
components={{ name: newName || '' }}
|
||||
/>
|
||||
);
|
||||
case 'avatar':
|
||||
return <Intl i18n={i18n} id="updatedGroupAvatar" />;
|
||||
return <Intl i18n={i18n} id="icu:updatedGroupAvatar" />;
|
||||
case 'add':
|
||||
if (!contacts || !contacts.length) {
|
||||
throw new Error('Group update is missing contacts');
|
||||
|
@ -86,13 +86,13 @@ export class GroupNotification extends React.Component<Props> {
|
|||
{otherPeople.length === 1 ? (
|
||||
<Intl
|
||||
i18n={i18n}
|
||||
id="joinedTheGroup"
|
||||
id="icu:joinedTheGroup"
|
||||
components={{ name: otherPeopleWithCommas }}
|
||||
/>
|
||||
) : (
|
||||
<Intl
|
||||
i18n={i18n}
|
||||
id="multipleJoinedTheGroup"
|
||||
id="icu:multipleJoinedTheGroup"
|
||||
components={{ names: otherPeopleWithCommas }}
|
||||
/>
|
||||
)}
|
||||
|
@ -100,14 +100,14 @@ export class GroupNotification extends React.Component<Props> {
|
|||
)}
|
||||
{contactsIncludesMe && (
|
||||
<div className="module-group-notification__change">
|
||||
<Intl i18n={i18n} id="youJoinedTheGroup" />
|
||||
<Intl i18n={i18n} id="icu:youJoinedTheGroup" />
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
);
|
||||
case 'remove':
|
||||
if (from && from.isMe) {
|
||||
return i18n('youLeftTheGroup');
|
||||
return i18n('icu:youLeftTheGroup');
|
||||
}
|
||||
|
||||
if (!contacts || !contacts.length) {
|
||||
|
@ -116,13 +116,13 @@ export class GroupNotification extends React.Component<Props> {
|
|||
|
||||
return contacts.length > 1 ? (
|
||||
<Intl
|
||||
id="multipleLeftTheGroup"
|
||||
id="icu:multipleLeftTheGroup"
|
||||
i18n={i18n}
|
||||
components={{ name: otherPeopleWithCommas }}
|
||||
/>
|
||||
) : (
|
||||
<Intl
|
||||
id="leftTheGroup"
|
||||
id="icu:leftTheGroup"
|
||||
i18n={i18n}
|
||||
components={{ name: otherPeopleWithCommas }}
|
||||
/>
|
||||
|
@ -146,11 +146,11 @@ export class GroupNotification extends React.Component<Props> {
|
|||
const isLeftOnly = changes.length === 1 && firstChange?.type === 'remove';
|
||||
|
||||
const fromLabel = from.isMe ? (
|
||||
<Intl i18n={i18n} id="youUpdatedTheGroup" />
|
||||
<Intl i18n={i18n} id="icu:youUpdatedTheGroup" />
|
||||
) : (
|
||||
<Intl
|
||||
i18n={i18n}
|
||||
id="updatedTheGroup"
|
||||
id="icu:updatedTheGroup"
|
||||
components={{ name: <ContactName title={from.title} /> }}
|
||||
/>
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue