mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-11-22 01:47:00 +01:00
Fix notification locale format (#11207)
This commit is contained in:
parent
6f49ff6b64
commit
3fc29bf4f2
@ -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),
|
||||
),
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user