From a1f81524ab8717143b9b1692efa2cf6a3fe280a1 Mon Sep 17 00:00:00 2001 From: Tink bot Date: Wed, 20 May 2026 20:09:25 +0000 Subject: [PATCH] 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. --- frontend/src/i18n/index.ts | 1 + frontend/src/i18n/useDayjsLanguageSync.ts | 2 ++ pkg/i18n/i18n.go | 1 + 3 files changed, 4 insertions(+) diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 0990ca5df..703a9940f 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -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 diff --git a/frontend/src/i18n/useDayjsLanguageSync.ts b/frontend/src/i18n/useDayjsLanguageSync.ts index a2c862fbb..21e3fd7d6 100644 --- a/frontend/src/i18n/useDayjsLanguageSync.ts +++ b/frontend/src/i18n/useDayjsLanguageSync.ts @@ -33,6 +33,7 @@ export const DAYJS_LOCALE_MAPPING = { 'fi-fi': 'fi', 'he-il': 'he', 'sv-se': 'sv', + 'el-gr': 'el', } as Record 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 Promise> export async function loadDayJsLocale(language: SupportedLocale) { diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index dea187bf7..78b878ed7 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -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 }