From 3d32462f50b4ced0d9205b79003c35d6d1c948a3 Mon Sep 17 00:00:00 2001 From: TheCatLady <52870424+TheCatLady@users.noreply.github.com> Date: Sat, 12 Mar 2022 17:17:03 -0500 Subject: [PATCH] feat(lang): add Albanian display language (#2605) --- src/context/LanguageContext.tsx | 5 +++++ src/pages/_app.tsx | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 889cbea0f..44d3baaae 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -18,6 +18,7 @@ export type AvailableLocale = | 'pt-BR' | 'pt-PT' | 'ru' + | 'sq' | 'sr' | 'sv' | 'zh-CN' @@ -85,6 +86,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'pt-PT', display: 'Português (Portugal)', }, + sq: { + code: 'sq', + display: 'Shqip', + }, sv: { code: 'sv', display: 'Svenska', diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 180d66bf9..dd6c3e975 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -55,6 +55,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/pt_PT.json'); case 'ru': return import('../i18n/locale/ru.json'); + case 'sq': + return import('../i18n/locale/sq.json'); case 'sr': return import('../i18n/locale/sr.json'); case 'sv':