Merged in feat/SW-1453-city-listing-on-country-page (pull request #1222)

feat(SW-1453): added city listing component

* feat(SW-1453): added city listing component


Approved-by: Christian Andolf
Approved-by: Fredrik Thorsson
This commit is contained in:
Erik Tiekstra
2025-01-29 10:09:51 +00:00
parent a7468cd958
commit ca42876eb8
25 changed files with 496 additions and 57 deletions

View File

@@ -1,3 +1,5 @@
import { Lang } from "@/constants/languages"
export enum Country {
Denmark = "Denmark",
Finland = "Finland",
@@ -6,3 +8,54 @@ export enum Country {
Poland = "Poland",
Sweden = "Sweden",
}
export const ApiCountry: Record<Lang, Record<Country, string>> = {
[Lang.da]: {
[Country.Denmark]: "Danmark",
[Country.Finland]: "Finland",
[Country.Germany]: "Tyskland",
[Country.Norway]: "Norge",
[Country.Poland]: "Polen",
[Country.Sweden]: "Sverige",
},
[Lang.de]: {
[Country.Denmark]: "Dänemark",
[Country.Finland]: "Finnland",
[Country.Germany]: "Deutschland",
[Country.Norway]: "Norwegen",
[Country.Poland]: "Polen",
[Country.Sweden]: "Schweden",
},
[Lang.en]: {
[Country.Denmark]: "Denmark",
[Country.Finland]: "Finland",
[Country.Germany]: "Germany",
[Country.Norway]: "Norway",
[Country.Poland]: "Poland",
[Country.Sweden]: "Sweden",
},
[Lang.fi]: {
[Country.Denmark]: "Tanska",
[Country.Finland]: "Suomi",
[Country.Germany]: "Saksa",
[Country.Norway]: "Norja",
[Country.Poland]: "Puola",
[Country.Sweden]: "Ruotsi",
},
[Lang.no]: {
[Country.Denmark]: "Danmark",
[Country.Finland]: "Finland",
[Country.Germany]: "Tyskland",
[Country.Norway]: "Norge",
[Country.Poland]: "Polen",
[Country.Sweden]: "Sverige",
},
[Lang.sv]: {
[Country.Denmark]: "Danmark",
[Country.Finland]: "Finland",
[Country.Germany]: "Tyskland",
[Country.Norway]: "Norge",
[Country.Poland]: "Polen",
[Country.Sweden]: "Sverige",
},
}

View File

@@ -1,16 +1,27 @@
import type { z } from "zod"
import type {
destinationCityListDataSchema,
destinationCityPageRefsSchema,
destinationCityPageSchema,
} from "@/server/routers/contentstack/destinationCityPage/output"
export interface GetDestinationCityPageData
extends z.input<typeof destinationCityPageSchema> {}
interface DestinationCityPage
export interface DestinationCityPage
extends z.output<typeof destinationCityPageSchema> {}
export type DestinationCityPageData = DestinationCityPage["destinationCityPage"]
export interface GetDestinationCityListDataResponse
extends z.input<typeof destinationCityListDataSchema> {}
export interface DestinationCityListData
extends z.output<typeof destinationCityListDataSchema> {}
export interface DestinationCityListItem extends DestinationCityListData {
cityName: string
}
export interface GetDestinationCityPageRefsSchema
extends z.input<typeof destinationCityPageRefsSchema> {}