Fully migrate to ICU

This commit is contained in:
Jamie Kyle 2023-03-29 17:03:25 -07:00 committed by GitHub
parent d4e7177ba6
commit 5e647c55d1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
274 changed files with 7948 additions and 1944 deletions

View file

@ -70,7 +70,7 @@ export const selectVoiceNoteTitle = createSelector(
? conversationSelector(ourConversationId)
: conversationSelector(sourceUuid || source);
return conversation.isMe ? i18n('you') : conversation.title;
return conversation.isMe ? i18n('icu:you') : conversation.title;
};
}
);

View file

@ -77,7 +77,7 @@ export const getPlaceholderContact = (): ConversationType => {
badges: [],
id: 'placeholder-contact',
type: 'direct',
title: window.i18n('unknownContact'),
title: window.i18n('icu:unknownContact'),
isMe: false,
sharedGroupNames: [],
};

View file

@ -1900,7 +1900,7 @@ export const getMessageDetails = createSelector(
if (error.name === OUTGOING_KEY_ERROR) {
return {
...error,
message: i18n('newIdentity'),
message: i18n('icu:newIdentity'),
};
}

View file

@ -82,7 +82,7 @@ export const getSearchConversationName = createSelector(
if (!conversation) {
return undefined;
}
return conversation.isMe ? i18n('noteToSelf') : conversation.title;
return conversation.isMe ? i18n('icu:noteToSelf') : conversation.title;
}
);

View file

@ -84,8 +84,8 @@ async function notifyForCall(
? 'images/icons/v2/video-solid-24.svg'
: 'images/icons/v2/phone-right-solid-24.svg',
message: isVideoCall
? window.i18n('incomingVideoCall')
: window.i18n('incomingAudioCall'),
? window.i18n('icu:incomingVideoCall')
: window.i18n('icu:incomingAudioCall'),
onNotificationClick: () => {
window.IPC.showWindow();
},

View file

@ -25,7 +25,7 @@ export function SmartContactName(props: ExternalProps): JSX.Element {
);
const conversation = getConversation(conversationId) || {
title: i18n('unknownContact'),
title: i18n('icu:unknownContact'),
};
return (

View file

@ -145,7 +145,7 @@ export function SmartInstallScreen(): ReactElement {
false,
'Unexpected empty device name. Falling back to placeholder value'
);
deviceName = i18n('Install__choose-device-name__placeholder');
deviceName = i18n('icu:Install__choose-device-name__placeholder');
}
chooseDeviceNamePromiseWrapperRef.current.resolve(deviceName);

View file

@ -52,7 +52,7 @@ export function SmartMiniPlayer({ shouldFlow }: Props): JSX.Element | null {
i18n={i18n}
title={
AudioPlayerContent.isDraft(content)
? i18n('you')
? i18n('icu:you')
: getVoiceNoteTitle(content.current)
}
onPlay={handlePlay}

View file

@ -43,13 +43,13 @@ export function SmartSendAnywayDialog(): JSX.Element {
: undefined;
let confirmText: string | undefined = i18n(
'safetyNumberChangeDialog__pending-messages'
'icu:safetyNumberChangeDialog__pending-messages'
);
if (safetyNumberChangedBlockingData?.source) {
confirmText =
safetyNumberChangedBlockingData?.source ===
SafetyNumberChangeSource.Calling
? i18n('callAnyway')
? i18n('icu:callAnyway')
: undefined;
}