feat: add Korean translation for selection

This commit is contained in:
kolaente 2024-12-26 17:12:19 +01:00
parent 367530bf2d
commit 6ee6b2ffee
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 4 additions and 1 deletions

View File

@ -27,6 +27,7 @@ export const SUPPORTED_LOCALES = {
'uk-UA': 'Українська',
'lt-LT': 'Lietuvių Kalba',
'bg-BG': 'Български',
'ko-KR': '한국어',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
} as const

View File

@ -27,6 +27,7 @@ export const DAYJS_LOCALE_MAPPING = {
'uk-UA': 'uk',
'lt-LT': 'lt',
'bg-BG': 'bg',
'ko-KR': 'ko',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@ -51,7 +52,8 @@ export const DAYJS_LANGUAGE_IMPORTS = {
'pt-br': () => import('dayjs/locale/pt-br'),
'uk-ua': () => import('dayjs/locale/uk'),
'lt-lt': () => import('dayjs/locale/lt'),
'bg-bg': () => import('dayjs/locale/bg'),
'bg-bg': () => import('dayjs/locale/bg'),
'ko-kr': () => import('dayjs/locale/ko'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export function useDayjsLanguageSync(dayjsGlobal: typeof dayjs) {