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