feat(i18n): add Ukrainian for language selection in UI
This commit is contained in:
parent
6d79eb0088
commit
f6c041db5b
@ -24,6 +24,7 @@ export const SUPPORTED_LOCALES = {
|
||||
'sl-SI': 'Slovenščina',
|
||||
'pt-BR': 'Português Brasileiro',
|
||||
'hr-HR': 'Hrvatski',
|
||||
'uk-UA': 'українська',
|
||||
// IMPORTANT: Also add new languages to useDayjsLanguageSync
|
||||
} as const
|
||||
|
||||
|
@ -24,6 +24,7 @@ export const DAYJS_LOCALE_MAPPING = {
|
||||
'sl-SI': 'sl',
|
||||
'pt-BR': 'pt',
|
||||
'hr-HR': 'hr',
|
||||
'uk-UA': 'uk',
|
||||
} as Record<SupportedLocale, ISOLanguage>
|
||||
|
||||
export const DAYJS_LANGUAGE_IMPORTS = {
|
||||
@ -46,6 +47,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
|
||||
'ar-sa': () => import('dayjs/locale/ar-sa'),
|
||||
'sl-si': () => import('dayjs/locale/sl'),
|
||||
'pt-br': () => import('dayjs/locale/pt-br'),
|
||||
'uk-ua': () => import('dayjs/locale/uk'),
|
||||
} as Record<SupportedLocale, () => Promise<ILocale>>
|
||||
|
||||
export function useDayjsLanguageSync(dayjsGlobal: typeof dayjs) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user