yaro 5 days ago
committed by GitHub
parent
commit
56e9ec65d7
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      CHANGELOG.md
  2. 15
      apps/client/project.json
  3. 5
      apps/client/src/app/components/footer/footer.component.html
  4. 1
      apps/client/src/app/components/user-account-settings/user-account-settings.component.ts
  5. 6
      apps/client/src/app/components/user-account-settings/user-account-settings.html
  6. 4
      apps/client/src/app/pages/features/features-page.html
  7. 3
      apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts
  8. 8665
      apps/client/src/locales/messages.ko.xlf
  9. 1
      libs/common/src/lib/config.ts
  10. 17
      libs/common/src/lib/helper.ts

4
CHANGELOG.md

@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## Unreleased
### Added
- Set up the language localization for Korean (`ko`)
### Changed
- Set the active sort column in the accounts table component

15
apps/client/project.json

@ -26,6 +26,10 @@
"baseHref": "/it/",
"translation": "apps/client/src/locales/messages.it.xlf"
},
"ko": {
"baseHref": "/ko/",
"translation": "apps/client/src/locales/messages.ko.xlf"
},
"nl": {
"baseHref": "/nl/",
"translation": "apps/client/src/locales/messages.nl.xlf"
@ -110,6 +114,10 @@
"baseHref": "/it/",
"localize": ["it"]
},
"development-ko": {
"baseHref": "/ko/",
"localize": ["ko"]
},
"development-nl": {
"baseHref": "/nl/",
"localize": ["nl"]
@ -213,6 +221,9 @@
"sslKey": "apps/client/localhost.pem"
},
"configurations": {
"development-ca": {
"buildTarget": "client:build:development-ca"
},
"development-de": {
"buildTarget": "client:build:development-de"
},
@ -228,6 +239,9 @@
"development-it": {
"buildTarget": "client:build:development-it"
},
"development-ko": {
"buildTarget": "client:build:development-ko"
},
"development-nl": {
"buildTarget": "client:build:development-nl"
},
@ -264,6 +278,7 @@
"messages.es.xlf",
"messages.fr.xlf",
"messages.it.xlf",
"messages.ko.xlf",
"messages.nl.xlf",
"messages.pl.xlf",
"messages.pt.xlf",

5
apps/client/src/app/components/footer/footer.component.html

@ -139,6 +139,11 @@
<li>
<a href="../it" title="Ghostfolio in Italiano">Italiano</a>
</li>
<li>
<a href="../ko" title="Ghostfolio in Korean (한국어)"
>Korean (한국어)</a
>
</li>
<li>
<a href="../nl" title="Ghostfolio in Nederlands">Nederlands</a>
</li>

1
apps/client/src/app/components/user-account-settings/user-account-settings.component.ts

@ -89,6 +89,7 @@ export class GfUserAccountSettingsComponent implements OnDestroy, OnInit {
'es',
'fr',
'it',
'ko',
'nl',
'pl',
'pt',

6
apps/client/src/app/components/user-account-settings/user-account-settings.html

@ -102,6 +102,12 @@
>Italiano (<ng-container i18n>Community</ng-container
>)</mat-option
>
@if (user?.settings?.isExperimentalFeatures) {
<mat-option value="ko"
>한국어 (<ng-container i18n>Community</ng-container
>)</mat-option
>
}
<mat-option value="nl"
>Nederlands (<ng-container i18n>Community</ng-container
>)</mat-option

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

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

3
apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts

@ -51,7 +51,8 @@ export class GfProductPageComponent implements OnInit {
'Nederlands',
'Português',
'Türkçe',
'简体中文'
'简体中文',
'한국어'
],
name: 'Ghostfolio',
origin: $localize`Switzerland`,

8665
apps/client/src/locales/messages.ko.xlf

File diff suppressed because it is too large

1
libs/common/src/lib/config.ts

@ -193,6 +193,7 @@ export const SUPPORTED_LANGUAGE_CODES = [
'es',
'fr',
'it',
'ko',
'nl',
'pl',
'pt',

17
libs/common/src/lib/helper.ts

@ -11,7 +11,20 @@ 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 +197,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