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:
@@ -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",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -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> {}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user