feat(i18n): add Lithuanian translation for selection

This commit is contained in:
kolaente 2024-08-26 17:05:01 +02:00
parent 8bfd0493b2
commit 56bab7485f
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
2 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,7 @@ export const SUPPORTED_LOCALES = {
'pt-BR': 'Português Brasileiro',
'hr-HR': 'Hrvatski',
'uk-UA': 'Українська',
'lt-LT': 'Lietuvių Kalba',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
} as const

View File

@ -25,6 +25,7 @@ export const DAYJS_LOCALE_MAPPING = {
'pt-BR': 'pt',
'hr-HR': 'hr',
'uk-UA': 'uk',
'lt-LT': 'lt',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@ -48,6 +49,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
'sl-si': () => import('dayjs/locale/sl'),
'pt-br': () => import('dayjs/locale/pt-br'),
'uk-ua': () => import('dayjs/locale/uk'),
'lt-lt': () => import('dayjs/locale/lt'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export function useDayjsLanguageSync(dayjsGlobal: typeof dayjs) {