9be692974e
Pagina-editor, hoofdmenu, SEO en media onder Publieke Website → Pagina's (/website), los van het CMS in rikx-org: eigen tabellen in de beheerdatabase. Blokken (hero, tekstblok, testimonial, voordelenlijst, call-to-action) met Quill, NL/EN/DE met terugval op NL, en afbeeldingsupload naar MEDIA_DIR met een openbare /media-route (CSP-sandbox). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
17 lines
512 B
TypeScript
17 lines
512 B
TypeScript
// Talen van de Publieke Website (CMS). Pure helpers zonder Node-imports,
|
|
// zodat ook client components ze kunnen gebruiken.
|
|
|
|
export const LANGS = ["nl", "en", "de"] as const;
|
|
export type Lang = (typeof LANGS)[number];
|
|
export const DEFAULT_LANG: Lang = "nl";
|
|
|
|
export const LANG_LABELS: Record<Lang, string> = {
|
|
nl: "Nederlands",
|
|
en: "English",
|
|
de: "Deutsch",
|
|
};
|
|
|
|
export function isLang(value: unknown): value is Lang {
|
|
return typeof value === "string" && (LANGS as readonly string[]).includes(value);
|
|
}
|