2021-04-28 18:51:41 +02:00
|
|
|
// Messages and descriptions for these locale keys are in app/_locales/en/messages.json
|
|
|
|
export const UI_NOTIFICATIONS = {
|
|
|
|
1: {
|
|
|
|
id: 1,
|
|
|
|
date: '2021-03-17',
|
|
|
|
image: {
|
|
|
|
src: 'images/mobile-link-qr.svg',
|
2021-05-03 19:39:26 +02:00
|
|
|
height: '230px',
|
|
|
|
width: '230px',
|
|
|
|
placeImageBelowDescription: true,
|
2021-04-28 18:51:41 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
3: {
|
|
|
|
id: 3,
|
2021-05-11 18:25:09 +02:00
|
|
|
date: '2021-03-08',
|
2021-04-28 18:51:41 +02:00
|
|
|
},
|
2021-05-14 19:17:56 +02:00
|
|
|
4: {
|
|
|
|
id: 4,
|
|
|
|
date: '2021-05-11',
|
|
|
|
image: {
|
|
|
|
src: 'images/source-logos-bsc.svg',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
2021-05-19 00:00:34 +02:00
|
|
|
5: {
|
|
|
|
id: 5,
|
2021-06-09 13:32:59 +02:00
|
|
|
date: '2021-06-09',
|
2021-05-19 00:00:34 +02:00
|
|
|
},
|
2021-05-26 23:29:19 +02:00
|
|
|
6: {
|
|
|
|
id: 6,
|
|
|
|
date: '2021-05-26',
|
|
|
|
},
|
2021-09-17 18:50:16 +02:00
|
|
|
7: {
|
|
|
|
id: 7,
|
|
|
|
date: '2021-09-17',
|
|
|
|
},
|
2021-11-03 23:35:39 +01:00
|
|
|
8: {
|
|
|
|
id: 8,
|
|
|
|
date: '2021-11-01',
|
|
|
|
},
|
2021-12-08 15:17:01 +01:00
|
|
|
9: {
|
|
|
|
id: 9,
|
|
|
|
date: '2021-12-07',
|
|
|
|
image: {
|
|
|
|
src: 'images/txinsights.png',
|
|
|
|
width: '80%',
|
|
|
|
},
|
|
|
|
},
|
2022-03-29 23:41:58 +02:00
|
|
|
10: {
|
|
|
|
id: 10,
|
2022-09-13 16:27:02 +02:00
|
|
|
date: '2022-09-15',
|
2022-03-29 23:41:58 +02:00
|
|
|
image: {
|
|
|
|
src: 'images/token-detection.svg',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
11: {
|
|
|
|
id: 11,
|
2022-09-13 16:27:02 +02:00
|
|
|
date: '2022-09-15',
|
2022-03-29 23:41:58 +02:00
|
|
|
},
|
2022-04-05 21:55:00 +02:00
|
|
|
12: {
|
|
|
|
id: 12,
|
|
|
|
date: '2022-05-18',
|
|
|
|
image: {
|
|
|
|
src: 'images/darkmode-banner.png',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
2022-07-14 20:08:32 +02:00
|
|
|
13: {
|
|
|
|
id: 13,
|
2022-09-13 16:27:02 +02:00
|
|
|
date: '2022-09-15',
|
2022-07-14 20:08:32 +02:00
|
|
|
},
|
2022-09-13 20:51:46 +02:00
|
|
|
14: {
|
|
|
|
id: 14,
|
2022-09-15 17:21:01 +02:00
|
|
|
date: '2022-09-15',
|
|
|
|
},
|
|
|
|
15: {
|
|
|
|
id: 15,
|
|
|
|
date: '2022-09-15',
|
2022-09-13 20:51:46 +02:00
|
|
|
},
|
2023-03-14 16:07:58 +01:00
|
|
|
16: {
|
|
|
|
id: 16,
|
|
|
|
date: null,
|
2023-04-06 17:08:11 +02:00
|
|
|
},
|
|
|
|
17: {
|
|
|
|
id: 17,
|
|
|
|
date: null,
|
|
|
|
},
|
|
|
|
18: {
|
|
|
|
id: 18,
|
|
|
|
date: null,
|
2023-03-14 16:07:58 +01:00
|
|
|
image: {
|
|
|
|
src: 'images/open-sea-security-provider.svg',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
2023-04-06 17:08:11 +02:00
|
|
|
19: {
|
|
|
|
id: 19,
|
2022-12-03 00:59:41 +01:00
|
|
|
date: null,
|
2023-03-14 16:07:58 +01:00
|
|
|
image: {
|
|
|
|
src: 'images/nfts.svg',
|
|
|
|
width: '100%',
|
|
|
|
},
|
2022-12-03 00:59:41 +01:00
|
|
|
},
|
2023-04-19 23:53:07 +02:00
|
|
|
20: {
|
|
|
|
id: 20,
|
|
|
|
date: null,
|
|
|
|
},
|
2023-06-15 20:17:21 +02:00
|
|
|
21: {
|
|
|
|
id: 21,
|
|
|
|
date: null,
|
|
|
|
image: {
|
|
|
|
src: 'images/swaps-redesign.svg',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
2023-07-29 01:18:22 +02:00
|
|
|
22: {
|
|
|
|
id: 22,
|
|
|
|
date: null,
|
|
|
|
image: {
|
|
|
|
src: 'images/global-menu-block-explorer.svg',
|
|
|
|
},
|
|
|
|
},
|
2023-08-02 17:14:02 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
|
|
23: {
|
|
|
|
id: 23,
|
|
|
|
date: null,
|
|
|
|
image: {
|
|
|
|
src: 'images/blockaid-security-provider.png',
|
|
|
|
width: '100%',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
|
2022-07-19 01:41:10 +02:00
|
|
|
export const getTranslatedUINotifications = (t, locale) => {
|
2023-08-02 17:14:02 +02:00
|
|
|
const formattedLocale = locale?.replace('_', '-');
|
2021-04-28 18:51:41 +02:00
|
|
|
return {
|
|
|
|
1: {
|
|
|
|
...UI_NOTIFICATIONS[1],
|
|
|
|
title: t('notifications1Title'),
|
|
|
|
description: t('notifications1Description'),
|
2021-05-11 18:25:09 +02:00
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
2021-04-28 18:51:41 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[1].date),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
3: {
|
|
|
|
...UI_NOTIFICATIONS[3],
|
|
|
|
title: t('notifications3Title'),
|
|
|
|
description: t('notifications3Description'),
|
|
|
|
actionText: t('notifications3ActionText'),
|
2021-05-11 18:25:09 +02:00
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
2021-04-28 18:51:41 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[3].date),
|
|
|
|
),
|
|
|
|
},
|
2021-05-14 19:17:56 +02:00
|
|
|
4: {
|
|
|
|
...UI_NOTIFICATIONS[4],
|
|
|
|
title: t('notifications4Title'),
|
|
|
|
description: t('notifications4Description'),
|
|
|
|
actionText: t('notifications4ActionText'),
|
2021-05-28 20:41:11 +02:00
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
2021-05-14 19:17:56 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[4].date),
|
|
|
|
),
|
|
|
|
},
|
2021-05-19 00:00:34 +02:00
|
|
|
5: {
|
|
|
|
...UI_NOTIFICATIONS[5],
|
2021-10-13 19:41:24 +02:00
|
|
|
title: t('secretRecoveryPhrase'),
|
2021-05-19 00:00:34 +02:00
|
|
|
description: t('notifications5Description'),
|
|
|
|
actionText: t('notifications3ActionText'),
|
2021-05-28 20:41:11 +02:00
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
2021-05-19 00:00:34 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[5].date),
|
|
|
|
),
|
|
|
|
},
|
2021-05-26 23:29:19 +02:00
|
|
|
6: {
|
|
|
|
...UI_NOTIFICATIONS[6],
|
|
|
|
title: t('notifications6Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications6DescriptionOne'),
|
|
|
|
t('notifications6DescriptionTwo'),
|
|
|
|
t('notifications6DescriptionThree'),
|
|
|
|
],
|
2021-05-28 20:41:11 +02:00
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
2021-05-26 23:29:19 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[6].date),
|
|
|
|
),
|
|
|
|
},
|
2021-09-17 18:50:16 +02:00
|
|
|
7: {
|
|
|
|
...UI_NOTIFICATIONS[7],
|
|
|
|
title: t('notifications7Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications7DescriptionOne'),
|
|
|
|
t('notifications7DescriptionTwo'),
|
|
|
|
],
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[7].date),
|
|
|
|
),
|
|
|
|
},
|
2021-11-03 23:35:39 +01:00
|
|
|
8: {
|
|
|
|
...UI_NOTIFICATIONS[8],
|
|
|
|
title: t('notifications8Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications8DescriptionOne'),
|
|
|
|
t('notifications8DescriptionTwo'),
|
|
|
|
],
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[8].date),
|
|
|
|
),
|
|
|
|
actionText: t('notifications8ActionText'),
|
|
|
|
},
|
2021-12-08 15:17:01 +01:00
|
|
|
9: {
|
|
|
|
...UI_NOTIFICATIONS[9],
|
|
|
|
title: t('notifications9Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications9DescriptionOne'),
|
|
|
|
t('notifications9DescriptionTwo'),
|
|
|
|
],
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[9].date),
|
|
|
|
),
|
|
|
|
},
|
2022-03-29 23:41:58 +02:00
|
|
|
10: {
|
|
|
|
...UI_NOTIFICATIONS[10],
|
|
|
|
title: t('notifications10Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications10DescriptionOne'),
|
|
|
|
t('notifications10DescriptionTwo'),
|
|
|
|
t('notifications10DescriptionThree'),
|
|
|
|
],
|
|
|
|
actionText: t('notifications10ActionText'),
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[10].date),
|
|
|
|
),
|
|
|
|
},
|
|
|
|
11: {
|
|
|
|
...UI_NOTIFICATIONS[11],
|
|
|
|
title: t('notifications11Title'),
|
|
|
|
description: t('notifications11Description'),
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[11].date),
|
|
|
|
),
|
|
|
|
},
|
2022-04-05 21:55:00 +02:00
|
|
|
12: {
|
|
|
|
...UI_NOTIFICATIONS[12],
|
|
|
|
title: t('notifications12Title'),
|
|
|
|
description: t('notifications12Description'),
|
|
|
|
actionText: t('notifications12ActionText'),
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[12].date),
|
|
|
|
),
|
|
|
|
},
|
2022-07-14 20:08:32 +02:00
|
|
|
13: {
|
|
|
|
...UI_NOTIFICATIONS[13],
|
|
|
|
title: t('notifications13Title'),
|
|
|
|
description: t('notifications13Description'),
|
|
|
|
actionText: t('notifications13ActionText'),
|
|
|
|
date: new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[13].date),
|
|
|
|
),
|
|
|
|
},
|
2022-09-13 20:51:46 +02:00
|
|
|
14: {
|
|
|
|
...UI_NOTIFICATIONS[14],
|
|
|
|
title: t('notifications14Title'),
|
|
|
|
description: t('notifications14Description'),
|
|
|
|
actionText: t('notifications14ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[14].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[14].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2022-09-15 17:21:01 +02:00
|
|
|
15: {
|
|
|
|
...UI_NOTIFICATIONS[15],
|
|
|
|
title: t('notifications15Title'),
|
|
|
|
description: t('notifications15Description'),
|
|
|
|
date: UI_NOTIFICATIONS[15].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[15].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2023-04-06 17:08:11 +02:00
|
|
|
18: {
|
|
|
|
...UI_NOTIFICATIONS[18],
|
|
|
|
title: t('notifications18Title'),
|
2023-03-14 16:07:58 +01:00
|
|
|
description: [
|
2023-04-06 17:08:11 +02:00
|
|
|
t('notifications18DescriptionOne'),
|
|
|
|
t('notifications18DescriptionTwo'),
|
|
|
|
t('notifications18DescriptionThree'),
|
2023-03-14 16:07:58 +01:00
|
|
|
],
|
2023-04-06 17:08:11 +02:00
|
|
|
actionText: t('notifications18ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[18].date
|
2023-03-14 16:07:58 +01:00
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
2023-04-06 17:08:11 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[18].date),
|
2023-03-14 16:07:58 +01:00
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
|
|
|
|
2023-04-06 17:08:11 +02:00
|
|
|
19: {
|
|
|
|
...UI_NOTIFICATIONS[19],
|
|
|
|
title: t('notifications19Title'),
|
2023-03-14 16:07:58 +01:00
|
|
|
description: [
|
2023-04-06 17:08:11 +02:00
|
|
|
t('notifications19DescriptionOne'),
|
|
|
|
t('notifications19DescriptionTwo'),
|
|
|
|
t('notifications19DescriptionThree'),
|
2023-03-14 16:07:58 +01:00
|
|
|
],
|
2023-04-06 17:08:11 +02:00
|
|
|
actionText: t('notifications19ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[19].date
|
2022-12-03 00:59:41 +01:00
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
2023-04-06 17:08:11 +02:00
|
|
|
new Date(UI_NOTIFICATIONS[19].date),
|
2022-12-03 00:59:41 +01:00
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2023-04-19 23:53:07 +02:00
|
|
|
20: {
|
|
|
|
...UI_NOTIFICATIONS[20],
|
|
|
|
title: t('notifications20Title'),
|
|
|
|
description: [t('notifications20Description')],
|
|
|
|
actionText: t('notifications20ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[20].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[20].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2023-06-15 20:17:21 +02:00
|
|
|
21: {
|
|
|
|
...UI_NOTIFICATIONS[21],
|
|
|
|
title: t('notifications21Title'),
|
|
|
|
description: t('notifications21Description'),
|
|
|
|
actionText: t('notifications21ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[21].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[21].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2023-07-29 01:18:22 +02:00
|
|
|
22: {
|
|
|
|
...UI_NOTIFICATIONS[22],
|
|
|
|
title: t('notifications22Title'),
|
|
|
|
description: t('notifications22Description'),
|
|
|
|
actionText: t('notifications22ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[22].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[22].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2023-08-02 17:14:02 +02:00
|
|
|
///: BEGIN:ONLY_INCLUDE_IN(blockaid)
|
|
|
|
23: {
|
|
|
|
...UI_NOTIFICATIONS[23],
|
|
|
|
title: t('notifications23Title'),
|
|
|
|
description: [
|
|
|
|
t('notifications23DescriptionOne'),
|
|
|
|
t('notifications23DescriptionTwo'),
|
|
|
|
t('notifications23DescriptionThree'),
|
|
|
|
],
|
|
|
|
actionText: t('notifications23ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[23].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[23].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
|
|
|
///: END:ONLY_INCLUDE_IN
|
2021-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
};
|