51 lines
1.6 KiB
TypeScript
51 lines
1.6 KiB
TypeScript
import type { PageConfig } from "../../../types/cms/PageConfig";
|
|
import { ContentType } from "../../../types/cms/ContentType.enum";
|
|
|
|
/**
|
|
* Generiert Mock-PageConfig mit locale-spezifischen Inhalten
|
|
* @param locale - Die gewünschte Locale ("de" oder "en")
|
|
*/
|
|
export function generateMockPageConfig(locale: string = "de"): PageConfig {
|
|
const isEn = locale === "en";
|
|
|
|
return {
|
|
logo: {
|
|
contentTypeId: ContentType.img,
|
|
fields: {
|
|
title: isEn ? 'Company Logo' : 'Firmenlogo',
|
|
description: isEn ? 'Main company logo' : 'Haupt-Firmenlogo',
|
|
file: {
|
|
url: 'https://picsum.photos/200/60?random=logo',
|
|
details: {
|
|
size: 12345,
|
|
image: {
|
|
width: 200,
|
|
height: 60,
|
|
},
|
|
},
|
|
fileName: 'logo.png',
|
|
contentType: 'image/png',
|
|
},
|
|
},
|
|
},
|
|
footerText1: isEn
|
|
? '© 2024 My Company. All rights reserved.'
|
|
: '© 2024 Meine Firma. Alle Rechte vorbehalten.',
|
|
seoTitle: isEn
|
|
? 'Welcome to our website'
|
|
: 'Willkommen auf unserer Website',
|
|
seoDescription: isEn
|
|
? 'Discover our products and services. We offer high-quality solutions for your needs.'
|
|
: 'Entdecken Sie unsere Produkte und Dienstleistungen. Wir bieten hochwertige Lösungen für Ihre Bedürfnisse.',
|
|
blogTagPageHeadline: isEn ? 'Blog Tags' : 'Blog Tags',
|
|
blogPostsPageHeadline: isEn
|
|
? 'Our Blog Posts'
|
|
: 'Unsere Blog-Beiträge',
|
|
blogPostsPageSubHeadline: isEn
|
|
? 'Current articles and news'
|
|
: 'Aktuelle Artikel und Neuigkeiten',
|
|
website: 'https://example.com',
|
|
};
|
|
}
|
|
|