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-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
export const getTranslatedUINoficiations = (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-04-28 18:51:41 +02:00
|
|
|
};
|
|
|
|
};
|