1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 17:33:23 +01:00

Fix notification locale format (#11207)

This commit is contained in:
Dan J Miller 2021-05-28 16:11:11 -02:30 committed by GitHub
parent 6f49ff6b64
commit 3fc29bf4f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ export const getTranslatedUINoficiations = (t, locale) => {
title: t('notifications4Title'),
description: t('notifications4Description'),
actionText: t('notifications4ActionText'),
date: new Intl.DateTimeFormat(locale).format(
date: new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[4].date),
),
},
@ -66,7 +66,7 @@ export const getTranslatedUINoficiations = (t, locale) => {
title: t('walletSeed'),
description: t('notifications5Description'),
actionText: t('notifications3ActionText'),
date: new Intl.DateTimeFormat(locale).format(
date: new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[5].date),
),
},
@ -78,7 +78,7 @@ export const getTranslatedUINoficiations = (t, locale) => {
t('notifications6DescriptionTwo'),
t('notifications6DescriptionThree'),
],
date: new Intl.DateTimeFormat(locale).format(
date: new Intl.DateTimeFormat(formattedLocale).format(
new Date(UI_NOTIFICATIONS[6].date),
),
},