From c7564ba8f7a53cac302b8146411b8c4868d5679c Mon Sep 17 00:00:00 2001 From: Lucas Smith Date: Wed, 23 Oct 2024 09:01:14 +1100 Subject: [PATCH] chore: enable spanish (#1417) Enables the spanish translation of the application: ![image](https://github.com/user-attachments/assets/eacf4800-272e-4458-abcc-4d6c6f3071cf) --- packages/lib/constants/i18n.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/packages/lib/constants/i18n.ts b/packages/lib/constants/i18n.ts index d940d490b..a54990e09 100644 --- a/packages/lib/constants/i18n.ts +++ b/packages/lib/constants/i18n.ts @@ -1,6 +1,6 @@ import { z } from 'zod'; -export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr'] as const; +export const SUPPORTED_LANGUAGE_CODES = ['de', 'en', 'fr', 'es'] as const; export const ZSupportedLanguageCodeSchema = z.enum(SUPPORTED_LANGUAGE_CODES).catch('en'); @@ -42,4 +42,8 @@ export const SUPPORTED_LANGUAGES: Record = { full: 'French', short: 'fr', }, + es: { + full: 'Spanish', + short: 'es', + }, } satisfies Record;