From 3af68e9e497c3ab816f79fe120c00963096eb57a Mon Sep 17 00:00:00 2001 From: Lars von BLS media Date: Mon, 24 Mar 2025 18:29:28 +0100 Subject: [PATCH] =?UTF-8?q?Standartsprache=20(f=C3=BCr=20Dokumente)=20-=20?= =?UTF-8?q?DE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/remix/app/entry.client.tsx | 2 +- packages/lib/constants/i18n.ts | 4 ++-- packages/lib/server-only/htmltopdf/get-certificate-pdf.ts | 2 +- packages/ui/primitives/document-flow/add-settings.types.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/remix/app/entry.client.tsx b/apps/remix/app/entry.client.tsx index 4b5769ff5..ba9023968 100644 --- a/apps/remix/app/entry.client.tsx +++ b/apps/remix/app/entry.client.tsx @@ -26,7 +26,7 @@ function PosthogInit() { } async function main() { - const locale = detect(fromHtmlTag('lang')) || 'en'; + const locale = detect(fromHtmlTag('lang')) || 'de'; await dynamicActivate(locale); diff --git a/packages/lib/constants/i18n.ts b/packages/lib/constants/i18n.ts index f0e495e59..12950b118 100644 --- a/packages/lib/constants/i18n.ts +++ b/packages/lib/constants/i18n.ts @@ -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 = { de: { - full: 'German', + full: 'Deutsch', short: 'de', }, en: { diff --git a/packages/lib/server-only/htmltopdf/get-certificate-pdf.ts b/packages/lib/server-only/htmltopdf/get-certificate-pdf.ts index 1d7a284ea..ea7ca5963 100644 --- a/packages/lib/server-only/htmltopdf/get-certificate-pdf.ts +++ b/packages/lib/server-only/htmltopdf/get-certificate-pdf.ts @@ -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([ { diff --git a/packages/ui/primitives/document-flow/add-settings.types.ts b/packages/ui/primitives/document-flow/add-settings.types.ts index 7905eedbc..3b4e566b5 100644 --- a/packages/ui/primitives/document-flow/add-settings.types.ts +++ b/packages/ui/primitives/document-flow/add-settings.types.ts @@ -53,7 +53,7 @@ export const ZAddSettingsFormSchema = z.object({ language: z .union([z.string(), z.enum(SUPPORTED_LANGUAGE_CODES)]) .optional() - .default('en'), + .default('de'), signatureTypes: z.array(z.nativeEnum(DocumentSignatureType)).min(1, { message: msg`At least one signature type must be enabled`.id, }),