feat(i18n): add Hebrew translation for selection

This commit is contained in:
kolaente
2025-03-27 11:58:23 +01:00
parent cfc7f17352
commit 303dbec78a
3 changed files with 4 additions and 0 deletions

View File

@@ -38,6 +38,7 @@ export const SUPPORTED_LOCALES = {
'ko-KR': '한국어',
'tr-TR': 'Türkçe',
'fi-FI': 'Suomi',
'he-IL': 'עִבְרִית',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
// IMPORTANT: Also add new languages to pkg/i18n/i18n.go
} as const

View File

@@ -30,6 +30,7 @@ export const DAYJS_LOCALE_MAPPING = {
'ko-kr': 'ko',
'tr-tr': 'tr',
'fi-fi': 'fi',
'he-il': 'he',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@@ -59,6 +60,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
'ko-kr': () => import('dayjs/locale/ko'),
'tr-tr': () => import('dayjs/locale/tr'),
'fi-fi': () => import('dayjs/locale/fi'),
'he-il': () => import('dayjs/locale/he'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export async function loadDayJsLocale(language: SupportedLocale) {

View File

@@ -74,6 +74,7 @@ var availableLanguages = map[string]bool{
"ko-KR": true,
"tr-TR": true,
"fi-FI": true,
"he-IL": true,
// IMPORTANT: Also add new languages to the frontend
}