Browse Source

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
pull/6136/head
yaro 1 week ago
parent
commit
53f970b706
  1. 6
      CHANGELOG.md
  2. 2
      apps/client/src/app/pages/features/features-page.html
  3. 4
      libs/common/src/lib/helper.ts

6
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

2
apps/client/src/app/pages/features/features-page.html

@ -260,7 +260,7 @@
<p class="m-0">
Use Ghostfolio in multiple languages: English,
<!-- Català, -->
Chinese, Dutch, French, German, Italian, Polish, Portuguese,
Chinese, Dutch, French, German, Italian, Korean, Polish, Portuguese,
Spanish and Turkish
<!-- and Ukrainian -->
are currently supported.

4
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') {

Loading…
Cancel
Save