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

@ -36,7 +36,7 @@ function renderBody({ pack, i18n }: Props) {
if (pack && pack.status === 'error') {
return (
<div className="module-sticker-manager__preview-modal__error">
{i18n('stickers--StickerPreview--Error')}
{i18n('icu:stickers--StickerPreview--Error')}
</div>
);
}
@ -156,8 +156,8 @@ export const StickerPreviewModal = React.memo(function StickerPreviewModalInner(
}, [uninstallStickerPack, setConfirmingUninstall, pack]);
const buttonLabel = isInstalled
? i18n('stickers--StickerManager--Uninstall')
: i18n('stickers--StickerManager--Install');
? i18n('icu:stickers--StickerManager--Uninstall')
: i18n('icu:stickers--StickerManager--Install');
const modalFooter =
pack && pack.status !== 'error' ? (
@ -198,14 +198,14 @@ export const StickerPreviewModal = React.memo(function StickerPreviewModalInner(
actions={[
{
style: 'negative',
text: i18n('stickers--StickerManager--Uninstall'),
text: i18n('icu:stickers--StickerManager--Uninstall'),
action: handleUninstall,
},
]}
i18n={i18n}
onClose={() => setConfirmingUninstall(false)}
>
{i18n('stickers--StickerManager--UninstallWarning')}
{i18n('icu:stickers--StickerManager--UninstallWarning')}
</ConfirmationDialog>
)}
<Modal
@ -215,7 +215,7 @@ export const StickerPreviewModal = React.memo(function StickerPreviewModalInner(
modalName="StickerPreviewModal"
moduleClassName="module-sticker-manager__preview-modal__modal"
onClose={handleClose}
title={i18n('stickers--StickerPreview--Title')}
title={i18n('icu:stickers--StickerPreview--Title')}
>
{renderBody(props)}
</Modal>