From 8d8db6cf5d98d4e498a31db339d02f8a98057c8d Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Fri, 8 Oct 2021 11:47:30 -0400 Subject: [PATCH] feat(lang): add Czech and Danish display languages (#2176) --- src/context/LanguageContext.tsx | 10 ++++++++++ src/pages/_app.tsx | 4 ++++ 2 files changed, 14 insertions(+) diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 28e30007e..2114274c7 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -2,6 +2,8 @@ import React, { ReactNode } from 'react'; export type AvailableLocale = | 'ca' + | 'cs' + | 'da' | 'de' | 'en' | 'el' @@ -30,6 +32,14 @@ export const availableLanguages: AvailableLanguageObject = { code: 'ca', display: 'Català', }, + cs: { + code: 'cs', + display: 'Čeština', + }, + da: { + code: 'da', + display: 'Dansk', + }, de: { code: 'de', display: 'Deutsch', diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 4de73712b..ab881702b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -25,6 +25,10 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { switch (locale) { case 'ca': return import('../i18n/locale/ca.json'); + case 'cs': + return import('../i18n/locale/cs.json'); + case 'da': + return import('../i18n/locale/da.json'); case 'de': return import('../i18n/locale/de.json'); case 'el':