SW-3270 move interactive map to design system or booking flow * wip * wip * merge * wip * add support for locales in design-system * add story for HotelCard * setup alias * . * remove tracking from design-system for hotelcard * pass isUserLoggedIn * export design-system-new-deprecated.css from design-system * Add HotelMarkerByType to Storybook * Add interactive map to Storybook * fix reactintl in vitest * rename env variables * . * fix background colors * add storybook stories for <Link /> * merge * fix tracking for when clicking 'See rooms' in InteractiveMap * Merge branch 'master' of bitbucket.org:scandic-swap/web into SW-3270-move-interactive-map-to-design-system-or-booking-flow * remove deprecated comment Approved-by: Anton Gunnarsson
28 lines
762 B
TypeScript
28 lines
762 B
TypeScript
/* eslint-disable import/no-relative-packages */
|
|
import en from '../../../apps/scandic-web/i18n/dictionaries/en.json'
|
|
import sv from '../../../apps/scandic-web/i18n/dictionaries/sv.json'
|
|
import da from '../../../apps/scandic-web/i18n/dictionaries/da.json'
|
|
import fi from '../../../apps/scandic-web/i18n/dictionaries/fi.json'
|
|
import de from '../../../apps/scandic-web/i18n/dictionaries/de.json'
|
|
import no from '../../../apps/scandic-web/i18n/dictionaries/no.json'
|
|
|
|
const locales = ['en', 'sv', 'da', 'fi', 'no', 'de']
|
|
|
|
const messages: Record<(typeof locales)[number], unknown> = {
|
|
en,
|
|
sv,
|
|
da,
|
|
fi,
|
|
no,
|
|
de,
|
|
}
|
|
|
|
const formats = {} // optional, if you have any formats
|
|
|
|
export const reactIntl = {
|
|
defaultLocale: 'en',
|
|
locales,
|
|
messages,
|
|
formats,
|
|
}
|