From 53f970b706c0087e607eeae240687f5648bd595b Mon Sep 17 00:00:00 2001 From: yaro <43820977+yootaebong@users.noreply.github.com> Date: Sun, 4 Jan 2026 15:53:25 +0900 Subject: [PATCH] fix: address PR review comments - Add Korean to features page language list - Add ko locale support to getDateFnsLocale() function - Add changelog entry for Korean language support --- CHANGELOG.md | 6 ++++++ apps/client/src/app/pages/features/features-page.html | 2 +- libs/common/src/lib/helper.ts | 4 +++- 3 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36b516c8c..ff1fc90a9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Added + +- Set up the language localization for Korean (`ko`) + ## 2.227.0 - 2026-01-02 ### Changed diff --git a/apps/client/src/app/pages/features/features-page.html b/apps/client/src/app/pages/features/features-page.html index d172347f7..f1d23c07c 100644 --- a/apps/client/src/app/pages/features/features-page.html +++ b/apps/client/src/app/pages/features/features-page.html @@ -260,7 +260,7 @@
Use Ghostfolio in multiple languages: English, - Chinese, Dutch, French, German, Italian, Polish, Portuguese, + Chinese, Dutch, French, German, Italian, Korean, Polish, Portuguese, Spanish and Turkish are currently supported. diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index 7452b604c..50dc3cc71 100644 --- a/libs/common/src/lib/helper.ts +++ b/libs/common/src/lib/helper.ts @@ -11,7 +11,7 @@ import { parseISO, subDays } from 'date-fns'; -import { ca, de, es, fr, it, nl, pl, pt, tr, uk, zhCN } from 'date-fns/locale'; +import { ca, de, es, fr, it, ko, nl, pl, pt, tr, uk, zhCN } from 'date-fns/locale'; import { DEFAULT_CURRENCY, @@ -184,6 +184,8 @@ export function getDateFnsLocale(aLanguageCode: string) { return fr; } else if (aLanguageCode === 'it') { return it; + } else if (aLanguageCode === 'ko') { + return ko; } else if (aLanguageCode === 'nl') { return nl; } else if (aLanguageCode === 'pl') {