Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details Approved-by: Anton Gunnarsson
This commit is contained in:
10
packages/booking-flow/lib/misc/getFormatedCountryList.ts
Normal file
10
packages/booking-flow/lib/misc/getFormatedCountryList.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { countries } from "@scandic-hotels/trpc/constants/countries"
|
||||
|
||||
import type { IntlShape } from "react-intl"
|
||||
|
||||
export function getFormattedCountryList(intl: IntlShape) {
|
||||
return countries.map((country) => ({
|
||||
...country,
|
||||
displayName: intl.formatDisplayName(country.code, { type: "region" }),
|
||||
}))
|
||||
}
|
||||
@@ -4,7 +4,7 @@ import {
|
||||
TrackingChannelEnum,
|
||||
type TrackingSDKHotelInfo,
|
||||
type TrackingSDKPageData,
|
||||
} from "@scandic-hotels/common/tracking/types"
|
||||
} from "@scandic-hotels/tracking/types"
|
||||
import { ChildBedMapEnum } from "@scandic-hotels/trpc/enums/childBedMapEnum"
|
||||
|
||||
import type { Lang } from "@scandic-hotels/common/constants/language"
|
||||
|
||||
Reference in New Issue
Block a user