Voeg CMS voor de Publieke Website toe (overgenomen van rikx-org)
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>
This commit is contained in:
+16
@@ -0,0 +1,16 @@
|
||||
// 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);
|
||||
}
|
||||
Reference in New Issue
Block a user