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 LeftPaneArchiveHelper extends LeftPaneHelper<LeftPaneArchivePropsTy
|
|||
<button
|
||||
onClick={this.getBackAction({ showInbox })}
|
||||
className="module-left-pane__header__contents__back-button"
|
||||
title={i18n('backToInbox')}
|
||||
aria-label={i18n('backToInbox')}
|
||||
title={i18n('icu:backToInbox')}
|
||||
aria-label={i18n('icu:backToInbox')}
|
||||
type="button"
|
||||
/>
|
||||
<div className="module-left-pane__header__contents__text">
|
||||
{i18n('archivedConversations')}
|
||||
{i18n('icu:archivedConversations')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -124,8 +124,8 @@ export class LeftPaneArchiveHelper extends LeftPaneHelper<LeftPaneArchivePropsTy
|
|||
return (
|
||||
<div className="module-left-pane__archive-helper-text">
|
||||
{this.getRowCount() > 0
|
||||
? i18n('archiveHelperText')
|
||||
: i18n('noArchivedConversations')}
|
||||
? i18n('icu:archiveHelperText')
|
||||
: i18n('icu:noArchivedConversations')}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
@ -137,7 +137,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
i18n: LocalizerType;
|
||||
startComposing: () => void;
|
||||
}>): ReactChild {
|
||||
const backButtonLabel = i18n('chooseGroupMembers__back-button');
|
||||
const backButtonLabel = i18n('icu:chooseGroupMembers__back-button');
|
||||
|
||||
return (
|
||||
<div className="module-left-pane__header__contents">
|
||||
|
@ -149,7 +149,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
type="button"
|
||||
/>
|
||||
<div className="module-left-pane__header__contents__text">
|
||||
{i18n('chooseGroupMembers__title')}
|
||||
{i18n('icu:chooseGroupMembers__title')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -177,7 +177,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
i18n={i18n}
|
||||
moduleClassName="module-left-pane__compose-search-form"
|
||||
onChange={onChangeComposeSearchTerm}
|
||||
placeholder={i18n('contactSearchPlaceholder')}
|
||||
placeholder={i18n('icu:contactSearchPlaceholder')}
|
||||
ref={focusRef}
|
||||
value={this.searchTerm}
|
||||
/>
|
||||
|
@ -242,7 +242,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
|
||||
{this.getRowCount() ? null : (
|
||||
<div className="module-left-pane__compose-no-contacts">
|
||||
{i18n('noContactsFound')}
|
||||
{i18n('icu:noContactsFound')}
|
||||
</div>
|
||||
)}
|
||||
|
||||
|
@ -264,8 +264,8 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
onClick={startSettingGroupMetadata}
|
||||
>
|
||||
{this.selectedContacts.length
|
||||
? i18n('chooseGroupMembers__next')
|
||||
: i18n('chooseGroupMembers__skip')}
|
||||
? i18n('icu:chooseGroupMembers__next')
|
||||
: i18n('icu:chooseGroupMembers__skip')}
|
||||
</Button>
|
||||
);
|
||||
}
|
||||
|
@ -314,7 +314,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('contactsHeader'),
|
||||
getHeaderText: i18n => i18n('icu:contactsHeader'),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -342,7 +342,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('findByPhoneNumberHeader'),
|
||||
getHeaderText: i18n => i18n('icu:findByPhoneNumberHeader'),
|
||||
};
|
||||
}
|
||||
if (virtualRowIndex === 1) {
|
||||
|
@ -363,7 +363,7 @@ export class LeftPaneChooseGroupMembersHelper extends LeftPaneHelper<LeftPaneCho
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('findByUsernameHeader'),
|
||||
getHeaderText: i18n => i18n('icu:findByUsernameHeader'),
|
||||
};
|
||||
}
|
||||
if (virtualRowIndex === 1) {
|
||||
|
|
|
@ -103,12 +103,12 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
<button
|
||||
onClick={this.getBackAction({ showInbox })}
|
||||
className="module-left-pane__header__contents__back-button"
|
||||
title={i18n('backToInbox')}
|
||||
aria-label={i18n('backToInbox')}
|
||||
title={i18n('icu:backToInbox')}
|
||||
aria-label={i18n('icu:backToInbox')}
|
||||
type="button"
|
||||
/>
|
||||
<div className="module-left-pane__header__contents__text">
|
||||
{i18n('newConversation')}
|
||||
{i18n('icu:newConversation')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -132,7 +132,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
i18n={i18n}
|
||||
moduleClassName="module-left-pane__compose-search-form"
|
||||
onChange={onChangeComposeSearchTerm}
|
||||
placeholder={i18n('contactSearchPlaceholder')}
|
||||
placeholder={i18n('icu:contactSearchPlaceholder')}
|
||||
ref={focusRef}
|
||||
value={this.searchTerm}
|
||||
/>
|
||||
|
@ -146,7 +146,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
}>): ReactChild | null {
|
||||
return this.getRowCount() ? null : (
|
||||
<div className="module-left-pane__compose-no-contacts">
|
||||
{i18n('noConversationsFound')}
|
||||
{i18n('icu:noConversationsFound')}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
@ -194,7 +194,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('contactsHeader'),
|
||||
getHeaderText: i18n => i18n('icu:contactsHeader'),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -215,7 +215,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('groupsHeader'),
|
||||
getHeaderText: i18n => i18n('icu:groupsHeader'),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -236,7 +236,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('findByUsernameHeader'),
|
||||
getHeaderText: i18n => i18n('icu:findByUsernameHeader'),
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -258,7 +258,7 @@ export class LeftPaneComposeHelper extends LeftPaneHelper<LeftPaneComposePropsTy
|
|||
if (virtualRowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('findByPhoneNumberHeader'),
|
||||
getHeaderText: i18n => i18n('icu:findByPhoneNumberHeader'),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ export class LeftPaneInboxHelper extends LeftPaneHelper<LeftPaneInboxPropsType>
|
|||
components={{
|
||||
composeIcon: (
|
||||
<span>
|
||||
<strong>{i18n('composeIcon')}</strong>
|
||||
<strong>{i18n('icu:composeIcon')}</strong>
|
||||
<span className="module-left-pane__empty--composer_icon">
|
||||
<i className="module-left-pane__empty--composer_icon--icon" />
|
||||
</span>
|
||||
|
@ -150,12 +150,12 @@ export class LeftPaneInboxHelper extends LeftPaneHelper<LeftPaneInboxPropsType>
|
|||
case 0:
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('LeftPane--pinned'),
|
||||
getHeaderText: i18n => i18n('icu:LeftPane--pinned'),
|
||||
};
|
||||
case pinnedConversations.length + 1:
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('LeftPane--chats'),
|
||||
getHeaderText: i18n => i18n('icu:LeftPane--chats'),
|
||||
};
|
||||
case pinnedConversations.length + conversations.length + 2:
|
||||
if (archivedConversationsCount) {
|
||||
|
|
|
@ -162,13 +162,13 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
|||
noResults = (
|
||||
<>
|
||||
<div>
|
||||
{i18n('noSearchResults', {
|
||||
{i18n('icu:noSearchResults', {
|
||||
searchTerm,
|
||||
})}
|
||||
</div>
|
||||
{primarySendsSms && (
|
||||
<div className="module-left-pane__no-search-results__sms-only">
|
||||
{i18n('noSearchResults--sms-only')}
|
||||
{i18n('icu:noSearchResults--sms-only')}
|
||||
</div>
|
||||
)}
|
||||
</>
|
||||
|
@ -229,7 +229,7 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
|||
if (rowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('conversationsHeader'),
|
||||
getHeaderText: i18n => i18n('icu:conversationsHeader'),
|
||||
};
|
||||
}
|
||||
assertDev(
|
||||
|
@ -250,7 +250,7 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
|||
if (localIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('contactsHeader'),
|
||||
getHeaderText: i18n => i18n('icu:contactsHeader'),
|
||||
};
|
||||
}
|
||||
assertDev(
|
||||
|
@ -274,7 +274,7 @@ export class LeftPaneSearchHelper extends LeftPaneHelper<LeftPaneSearchPropsType
|
|||
if (localIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('messagesHeader'),
|
||||
getHeaderText: i18n => i18n('icu:messagesHeader'),
|
||||
};
|
||||
}
|
||||
assertDev(
|
||||
|
|
|
@ -83,7 +83,7 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
i18n: LocalizerType;
|
||||
showChooseGroupMembers: () => void;
|
||||
}>): ReactChild {
|
||||
const backButtonLabel = i18n('setGroupMetadata__back-button');
|
||||
const backButtonLabel = i18n('icu:setGroupMetadata__back-button');
|
||||
|
||||
return (
|
||||
<div className="module-left-pane__header__contents">
|
||||
|
@ -96,7 +96,7 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
type="button"
|
||||
/>
|
||||
<div className="module-left-pane__header__contents__text">
|
||||
{i18n('setGroupMetadata__title')}
|
||||
{i18n('icu:setGroupMetadata__title')}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
|
@ -156,7 +156,9 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
hasXButton
|
||||
i18n={i18n}
|
||||
onClose={toggleComposeEditingAvatar}
|
||||
title={i18n('LeftPaneSetGroupMetadataHelper__avatar-modal-title')}
|
||||
title={i18n(
|
||||
'icu:LeftPaneSetGroupMetadataHelper__avatar-modal-title'
|
||||
)}
|
||||
>
|
||||
<AvatarEditor
|
||||
avatarColor={avatarColor}
|
||||
|
@ -211,7 +213,7 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
|
||||
{this.hasError && (
|
||||
<Alert
|
||||
body={i18n('setGroupMetadata__error-message')}
|
||||
body={i18n('icu:setGroupMetadata__error-message')}
|
||||
i18n={i18n}
|
||||
onClose={clearGroupCreationError}
|
||||
/>
|
||||
|
@ -237,7 +239,7 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
{this.isCreating ? (
|
||||
<Spinner size="20px" svgSize="small" direction="on-avatar" />
|
||||
) : (
|
||||
i18n('setGroupMetadata__create-group')
|
||||
i18n('icu:setGroupMetadata__create-group')
|
||||
)}
|
||||
</Button>
|
||||
);
|
||||
|
@ -258,7 +260,7 @@ export class LeftPaneSetGroupMetadataHelper extends LeftPaneHelper<LeftPaneSetGr
|
|||
if (rowIndex === 0) {
|
||||
return {
|
||||
type: RowType.Header,
|
||||
getHeaderText: i18n => i18n('setGroupMetadata__members-header'),
|
||||
getHeaderText: i18n => i18n('icu:setGroupMetadata__members-header'),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue