feat(i18n): add Turkish as language for selection
This commit is contained in:
parent
357dbc1c69
commit
ffd5a962f5
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue