forked from fahrPool/fahrPool
29 lines
868 B
TypeScript
29 lines
868 B
TypeScript
export const STANDARD_FOTO_POSITIONEN = [
|
|
"front",
|
|
"seitlich_rechts",
|
|
"rechte_seite",
|
|
"seitlich_rechts_heck",
|
|
"heck",
|
|
"seitlich_links_heck",
|
|
"linke_seite",
|
|
"seitlich_vorne_links",
|
|
] as const;
|
|
|
|
export type StandardFotoPosition = (typeof STANDARD_FOTO_POSITIONEN)[number];
|
|
|
|
// Lesbare Bezeichnungen (Wortlaut der Anforderungen in CLAUDE.md).
|
|
export const FOTO_BEZEICHNUNGEN: Record<StandardFotoPosition, string> = {
|
|
front: "Front",
|
|
seitlich_rechts: "Seitlich rechts",
|
|
rechte_seite: "Rechte Seite",
|
|
seitlich_rechts_heck: "Seitlich rechts Heck",
|
|
heck: "Heck",
|
|
seitlich_links_heck: "Seitlich links Heck",
|
|
linke_seite: "Linke Seite",
|
|
seitlich_vorne_links: "Seitlich vorne links",
|
|
};
|
|
|
|
export function fotoBezeichnung(position: string): string {
|
|
return FOTO_BEZEICHNUNGEN[position as StandardFotoPosition] ?? position.replaceAll("_", " ");
|
|
}
|