From cf417845e9203e2bdea8780165c6a86ff9743a3d Mon Sep 17 00:00:00 2001 From: Donkie Date: Sun, 17 Dec 2023 20:10:48 +0100 Subject: [PATCH] Implemented Danish language in selector --- client/src/i18n.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/client/src/i18n.ts b/client/src/i18n.ts index 5a59e7e..317096e 100644 --- a/client/src/i18n.ts +++ b/client/src/i18n.ts @@ -9,6 +9,13 @@ interface Language { fullCode: string; } +/** + * List of languages to load + * The key of each object is the folder name in the locales dir. + * name: Name of the language in the list + * countryCode: Country code of the country's flag to display for this language + * fullCode: Full language code, used for Ant Design's locale + */ export const languages: { [key: string]: Language } = { ["en"]: { name: "English", @@ -85,6 +92,11 @@ export const languages: { [key: string]: Language } = { countryCode: "gr", fullCode: "el-GR", }, + ["da"]: { + name: "Dansk", + countryCode: "dk", + fullCode: "da-DK", + }, }; i18n