feat(i18n): add Turkish as language for selection

This commit is contained in:
kolaente 2025-03-19 14:56:12 +01:00
parent 357dbc1c69
commit ffd5a962f5
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
3 changed files with 4 additions and 0 deletions

View File

@ -36,6 +36,7 @@ export const SUPPORTED_LOCALES = {
'lt-LT': 'Lietuvių Kalba',
'bg-BG': 'Български',
'ko-KR': '한국어',
'tr-TR': 'Türkçe',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
// IMPORTANT: Also add new languages to pkg/i18n/i18n.go
} as const

View File

@ -28,6 +28,7 @@ export const DAYJS_LOCALE_MAPPING = {
'lt-lt': 'lt',
'bg-bg': 'bg',
'ko-kr': 'ko',
'tr-tr': 'tr',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@ -55,6 +56,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
'lt-lt': () => import('dayjs/locale/lt'),
'bg-bg': () => import('dayjs/locale/bg'),
'ko-kr': () => import('dayjs/locale/ko'),
'tr-tr': () => import('dayjs/locale/tr'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export async function loadDayJsLocale(language: SupportedLocale) {

View File

@ -72,6 +72,7 @@ var availableLanguages = map[string]bool{
"lt-LT": true,
"bg-BG": true,
"ko-KR": true,
"tr-TR": true,
// IMPORTANT: Also add new languages to the frontend
}