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
|
|
|
},
|
2022-11-15 20:17:28 +01:00
|
|
|
16: {
|
|
|
|
id: 16,
|
|
|
|
date: null,
|
|
|
|
},
|
2022-12-03 00:59:41 +01:00
|
|
|
17: {
|
|
|
|
id: 17,
|
|
|
|
date: null,
|
|
|
|
},
|
2021-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
|
2022-07-19 01:41:10 +02:00
|
|
|
export const getTranslatedUINotifications = (t, locale) => {
|
2021-05-11 18:25:09 +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),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2022-11-15 20:17:28 +01:00
|
|
|
16: {
|
|
|
|
...UI_NOTIFICATIONS[16],
|
|
|
|
title: t('notifications16Title'),
|
|
|
|
description: t('notifications16Description'),
|
|
|
|
actionText: t('notifications16ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[16].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[16].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2022-12-03 00:59:41 +01:00
|
|
|
17: {
|
|
|
|
...UI_NOTIFICATIONS[17],
|
|
|
|
title: t('notifications17Title'),
|
|
|
|
description: t('notifications17Description'),
|
|
|
|
actionText: t('notifications17ActionText'),
|
|
|
|
date: UI_NOTIFICATIONS[17].date
|
|
|
|
? new Intl.DateTimeFormat(formattedLocale).format(
|
|
|
|
new Date(UI_NOTIFICATIONS[17].date),
|
|
|
|
)
|
|
|
|
: '',
|
|
|
|
},
|
2021-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
};
|