feat(i18n): add Bulgarian for language selection

This commit is contained in:
kolaente 2024-10-28 11:27:42 +01:00
parent 7055d7341c
commit fcd56cb7cf
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 0 deletions

View File

@ -26,6 +26,7 @@ export const SUPPORTED_LOCALES = {
'hr-HR': 'Hrvatski',
'uk-UA': 'Українська',
'lt-LT': 'Lietuvių Kalba',
'bg-BG': 'български език',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
} as const

View File

@ -26,6 +26,7 @@ export const DAYJS_LOCALE_MAPPING = {
'hr-HR': 'hr',
'uk-UA': 'uk',
'lt-LT': 'lt',
'bg-BG': 'bg',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@ -50,6 +51,7 @@ 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'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export function useDayjsLanguageSync(dayjsGlobal: typeof dayjs) {