feat(i18n): add Finnish translation for selection
This commit is contained in:
parent
df9bc96e4b
commit
cfc7f17352
|
|
@ -37,6 +37,7 @@ export const SUPPORTED_LOCALES = {
|
|||
'bg-BG': 'Български',
|
||||
'ko-KR': '한국어',
|
||||
'tr-TR': 'Türkçe',
|
||||
'fi-FI': 'Suomi',
|
||||
// IMPORTANT: Also add new languages to useDayjsLanguageSync
|
||||
// IMPORTANT: Also add new languages to pkg/i18n/i18n.go
|
||||
} as const
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@ export const DAYJS_LOCALE_MAPPING = {
|
|||
'bg-bg': 'bg',
|
||||
'ko-kr': 'ko',
|
||||
'tr-tr': 'tr',
|
||||
'fi-fi': 'fi',
|
||||
} as Record<SupportedLocale, ISOLanguage>
|
||||
|
||||
export const DAYJS_LANGUAGE_IMPORTS = {
|
||||
|
|
@ -57,6 +58,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
|
|||
'bg-bg': () => import('dayjs/locale/bg'),
|
||||
'ko-kr': () => import('dayjs/locale/ko'),
|
||||
'tr-tr': () => import('dayjs/locale/tr'),
|
||||
'fi-fi': () => import('dayjs/locale/fi'),
|
||||
} as Record<SupportedLocale, () => Promise<ILocale>>
|
||||
|
||||
export async function loadDayJsLocale(language: SupportedLocale) {
|
||||
|
|
|
|||
|
|
@ -73,6 +73,7 @@ var availableLanguages = map[string]bool{
|
|||
"bg-BG": true,
|
||||
"ko-KR": true,
|
||||
"tr-TR": true,
|
||||
"fi-FI": true,
|
||||
// IMPORTANT: Also add new languages to the frontend
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue