From cfacb151b52d08e19d2fcd603fb4bbcd78707cdf Mon Sep 17 00:00:00 2001 From: sct Date: Sun, 31 Jan 2021 13:20:32 +0000 Subject: [PATCH] feat(lang): add support for Hungarian language --- src/components/Layout/LanguagePicker/index.tsx | 4 ++++ src/context/LanguageContext.tsx | 1 + src/pages/_app.tsx | 2 ++ 3 files changed, 7 insertions(+) diff --git a/src/components/Layout/LanguagePicker/index.tsx b/src/components/Layout/LanguagePicker/index.tsx index db7a5c339..3a4b1683c 100644 --- a/src/components/Layout/LanguagePicker/index.tsx +++ b/src/components/Layout/LanguagePicker/index.tsx @@ -37,6 +37,10 @@ const availableLanguages: AvailableLanguageObject = { code: 'it', display: 'Italiano', }, + hu: { + code: 'hu', + display: 'Magyar', + }, nl: { code: 'nl', display: 'Nederlands', diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index d55797ab5..078a81730 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -7,6 +7,7 @@ export type AvailableLocales = | 'it' | 'ja' | 'fr' + | 'hu' | 'nb-NO' | 'nl' | 'pt-BR' diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 86f546154..bbc1ca39b 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -30,6 +30,8 @@ const loadLocaleData = (locale: AvailableLocales): Promise => { return import('../i18n/locale/it.json'); case 'ja': return import('../i18n/locale/ja.json'); + case 'hu': + return import('../i18n/locale/hu.json'); case 'nb-NO': return import('../i18n/locale/nb_NO.json'); case 'nl':