Files
web/packages/booking-flow/lib/misc/getFormatedCountryList.ts
Joakim Jäderberg 7dee6d5083 Merged in chore/move-enter-details (pull request #2778)
Chore/move enter details

Approved-by: Anton Gunnarsson
2025-09-11 07:16:24 +00:00

11 lines
312 B
TypeScript

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" }),
}))
}