Fully migrate to ICU
This commit is contained in:
parent
d4e7177ba6
commit
5e647c55d1
274 changed files with 7948 additions and 1944 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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: [],
|
||||
};
|
||||
|
|
|
@ -1900,7 +1900,7 @@ export const getMessageDetails = createSelector(
|
|||
if (error.name === OUTGOING_KEY_ERROR) {
|
||||
return {
|
||||
...error,
|
||||
message: i18n('newIdentity'),
|
||||
message: i18n('icu:newIdentity'),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
);
|
||||
|
||||
|
|
|
@ -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();
|
||||
},
|
||||
|
|
|
@ -25,7 +25,7 @@ export function SmartContactName(props: ExternalProps): JSX.Element {
|
|||
);
|
||||
|
||||
const conversation = getConversation(conversationId) || {
|
||||
title: i18n('unknownContact'),
|
||||
title: i18n('icu:unknownContact'),
|
||||
};
|
||||
|
||||
return (
|
||||
|
|
|
@ -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);
|
||||
|
||||
|
|
|
@ -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}
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue