mirror of
https://github.com/go-vikunja/vikunja.git
synced 2026-04-24 22:25:15 +00:00
feat(i18n): add Hebrew translation for selection
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user