feat(i18n): make Greek available in the language selector

el-GR translations are around 36% complete but were not yet listed in the
UI. Add it to the supported locales list (frontend and backend) and wire
up the dayjs locale mapping.
This commit is contained in:
Tink bot 2026-05-20 20:09:25 +00:00 committed by kolaente
parent 4351ebf411
commit a1f81524ab
3 changed files with 4 additions and 0 deletions

View File

@ -41,6 +41,7 @@ export const SUPPORTED_LOCALES = {
'fi-FI': 'Suomi',
'he-IL': 'עִבְרִית',
'sv-SE': 'Svenska',
'el-GR': 'Ελληνικά',
// IMPORTANT: Also add new languages to useDayjsLanguageSync
// IMPORTANT: Also add new languages to pkg/i18n/i18n.go
} as const

View File

@ -33,6 +33,7 @@ export const DAYJS_LOCALE_MAPPING = {
'fi-fi': 'fi',
'he-il': 'he',
'sv-se': 'sv',
'el-gr': 'el',
} as Record<SupportedLocale, ISOLanguage>
export const DAYJS_LANGUAGE_IMPORTS = {
@ -65,6 +66,7 @@ export const DAYJS_LANGUAGE_IMPORTS = {
'fi-fi': () => import('dayjs/locale/fi'),
'he-il': () => import('dayjs/locale/he'),
'sv-se': () => import('dayjs/locale/sv'),
'el-gr': () => import('dayjs/locale/el'),
} as Record<SupportedLocale, () => Promise<ILocale>>
export async function loadDayJsLocale(language: SupportedLocale) {

View File

@ -77,6 +77,7 @@ var availableLanguages = map[string]bool{
"fi-FI": true,
"he-IL": true,
"sv-SE": true,
"el-GR": true,
// IMPORTANT: Also add new languages to the frontend
}