From 4a06fd6f8e07c20db7e2615c637ba9db96a2d3e3 Mon Sep 17 00:00:00 2001 From: Jordan Jones Date: Wed, 1 May 2024 08:20:22 -0500 Subject: [PATCH] fix: add back added langs --- src/context/LanguageContext.tsx | 15 +++++++++++++++ src/pages/_app.tsx | 10 ++++++++++ 2 files changed, 25 insertions(+) diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 987da28e..e3621028 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -13,6 +13,8 @@ export type AvailableLocale = | 'fi' | 'fr' | 'hr' + | 'he' + | 'hi' | 'hu' | 'it' | 'ja' @@ -23,6 +25,7 @@ export type AvailableLocale = | 'pl' | 'pt-BR' | 'pt-PT' + | 'ro' | 'ru' | 'sq' | 'sr' @@ -73,6 +76,14 @@ export const availableLanguages: AvailableLanguageObject = { code: 'fr', display: 'Français', }, + he: { + code: 'he', + display: 'Hebrew', + }, + hi: { + code: 'hi', + display: 'Hindi', + }, hr: { code: 'hr', display: 'Hrvatski', @@ -121,6 +132,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'el', display: 'Ελληνικά', }, + ro: { + code: 'ro', + display: 'Romanian', + }, ru: { code: 'ru', display: 'pусский', diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 3bea11a1..01ea14f9 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -28,6 +28,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { switch (locale) { case 'ar': return import('../i18n/locale/ar.json'); + case 'bg': + return import('../i18n/locale/bg.json'); case 'ca': return import('../i18n/locale/ca.json'); case 'cs': @@ -40,8 +42,14 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/el.json'); case 'es': return import('../i18n/locale/es.json'); + case 'fi': + return import('../i18n/locale/fi.json'); case 'fr': return import('../i18n/locale/fr.json'); + case 'he': + return import('../i18n/locale/he.json'); + case 'hi': + return import('../i18n/locale/hi.json'); case 'hr': return import('../i18n/locale/hr.json'); case 'hu': @@ -64,6 +72,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/pt_BR.json'); case 'pt-PT': return import('../i18n/locale/pt_PT.json'); + case 'ro': + return import('../i18n/locale/ro.json'); case 'ru': return import('../i18n/locale/ru.json'); case 'sq':