Standartsprache (für Dokumente) - DE

This commit is contained in:
2025-03-24 18:29:28 +01:00
parent ff712de07c
commit 3af68e9e49
4 changed files with 5 additions and 5 deletions

View File

@@ -2,7 +2,7 @@ import { z } from 'zod';
export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es', 'it', 'pl'] as const;
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en');
export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('de');
export type SupportedLanguageCodes = (typeof SUPPORTED_LANGUAGE_CODES)[number];
@@ -31,7 +31,7 @@ type SupportedLanguage = {
export const SUPPORTED_LANGUAGES: Record<string, SupportedLanguage> = {
de: {
full: 'German',
full: 'Deutsch',
short: 'de',
},
en: {

View File

@@ -42,7 +42,7 @@ export const getCertificatePdf = async ({ documentId, language }: GetCertificate
const page = await browserContext.newPage();
const lang = isValidLanguageCode(language) ? language : 'en';
const lang = isValidLanguageCode(language) ? language : 'de';
await page.context().addCookies([
{