feat(i18n): add Finnish translation for selection

This commit is contained in:
kolaente 2025-03-27 11:54:17 +01:00
parent df9bc96e4b
commit cfc7f17352
No known key found for this signature in database
GPG Key ID: F40E70337AB24C9B
3 changed files with 4 additions and 0 deletions

View File

@ -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

View File

@ -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) {

View File

@ -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
}