From a34f6bbd803e5d036c44ee01878bb94de0eacdbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?An=C5=BEe=20Videni=C4=8D?= Date: Sun, 31 Mar 2024 09:01:09 +0200 Subject: [PATCH] feat(lang): add Slovenian display language --- src/context/LanguageContext.tsx | 5 +++++ src/i18n/locale/sl.json | 2 ++ src/pages/_app.tsx | 2 ++ 3 files changed, 9 insertions(+) create mode 100644 src/i18n/locale/sl.json diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index e6164af7a5..4a73e43ddc 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -22,6 +22,7 @@ export type AvailableLocale = | 'pt-BR' | 'pt-PT' | 'ru' + | 'sl' | 'sq' | 'sr' | 'sv' @@ -98,6 +99,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'pt-PT', display: 'Português (Portugal)', }, + sl: { + code: 'sl', + display: 'Slovenščina', + }, sq: { code: 'sq', display: 'Shqip', diff --git a/src/i18n/locale/sl.json b/src/i18n/locale/sl.json new file mode 100644 index 0000000000..0f530c147c --- /dev/null +++ b/src/i18n/locale/sl.json @@ -0,0 +1,2 @@ +{ +} diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index ceb5734ecb..61ee4bd3d2 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -66,6 +66,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/pt_PT.json'); case 'ru': return import('../i18n/locale/ru.json'); + case 'sl': + return import('../i18n/locale/sl.json'); case 'sq': return import('../i18n/locale/sq.json'); case 'sr':