diff --git a/frontend/src/i18n/index.ts b/frontend/src/i18n/index.ts index 11144aa26..876006b64 100644 --- a/frontend/src/i18n/index.ts +++ b/frontend/src/i18n/index.ts @@ -36,6 +36,7 @@ export const SUPPORTED_LOCALES = { 'lt-LT': 'Lietuvių Kalba', 'bg-BG': 'Български', 'ko-KR': '한국어', + 'tr-TR': 'Türkçe', // 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 4f9fc734f..d0f7a1c26 100644 --- a/frontend/src/i18n/useDayjsLanguageSync.ts +++ b/frontend/src/i18n/useDayjsLanguageSync.ts @@ -28,6 +28,7 @@ export const DAYJS_LOCALE_MAPPING = { 'lt-lt': 'lt', 'bg-bg': 'bg', 'ko-kr': 'ko', + 'tr-tr': 'tr', } as Record export const DAYJS_LANGUAGE_IMPORTS = { @@ -55,6 +56,7 @@ export const DAYJS_LANGUAGE_IMPORTS = { 'lt-lt': () => import('dayjs/locale/lt'), 'bg-bg': () => import('dayjs/locale/bg'), 'ko-kr': () => import('dayjs/locale/ko'), + 'tr-tr': () => import('dayjs/locale/tr'), } as Record Promise> export async function loadDayJsLocale(language: SupportedLocale) { diff --git a/pkg/i18n/i18n.go b/pkg/i18n/i18n.go index d201525ac..0399285c6 100644 --- a/pkg/i18n/i18n.go +++ b/pkg/i18n/i18n.go @@ -72,6 +72,7 @@ var availableLanguages = map[string]bool{ "lt-LT": true, "bg-BG": true, "ko-KR": true, + "tr-TR": true, // IMPORTANT: Also add new languages to the frontend }