Browse Source

Task/set up language localization for Japanese (#7132)

* Set up language localization for Japanese

* Update changelog

---------

Co-authored-by: Thomas Kaul <4159106+dtslvr@users.noreply.github.com>
pull/7130/head
greymoth 3 days ago
committed by GitHub
parent
commit
cea20fa5f6
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 1
      CHANGELOG.md
  2. 12
      apps/client/project.json
  3. 7
      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. 9
      apps/client/src/app/components/user-account-settings/user-account-settings.html
  6. 1
      apps/client/src/app/pages/resources/personal-finance-tools/product-page.component.ts
  7. 8781
      apps/client/src/locales/messages.ja.xlf
  8. 1
      libs/common/src/lib/config.ts
  9. 3
      libs/common/src/lib/helper.ts

1
CHANGELOG.md

@ -8,6 +8,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added ### Added
- Added support for filtering in the public access for portfolio sharing (experimental) - Added support for filtering in the public access for portfolio sharing (experimental)
- Set up the language localization for Japanese (`ja`)
## 3.17.0 - 2026-06-26 ## 3.17.0 - 2026-06-26

12
apps/client/project.json

@ -26,6 +26,10 @@
"baseHref": "/it/", "baseHref": "/it/",
"translation": "apps/client/src/locales/messages.it.xlf" "translation": "apps/client/src/locales/messages.it.xlf"
}, },
"ja": {
"baseHref": "/ja/",
"translation": "apps/client/src/locales/messages.ja.xlf"
},
"ko": { "ko": {
"baseHref": "/ko/", "baseHref": "/ko/",
"translation": "apps/client/src/locales/messages.ko.xlf" "translation": "apps/client/src/locales/messages.ko.xlf"
@ -114,6 +118,10 @@
"baseHref": "/it/", "baseHref": "/it/",
"localize": ["it"] "localize": ["it"]
}, },
"development-ja": {
"baseHref": "/ja/",
"localize": ["ja"]
},
"development-ko": { "development-ko": {
"baseHref": "/ko/", "baseHref": "/ko/",
"localize": ["ko"] "localize": ["ko"]
@ -239,6 +247,9 @@
"development-it": { "development-it": {
"buildTarget": "client:build:development-it" "buildTarget": "client:build:development-it"
}, },
"development-ja": {
"buildTarget": "client:build:development-ja"
},
"development-ko": { "development-ko": {
"buildTarget": "client:build:development-ko" "buildTarget": "client:build:development-ko"
}, },
@ -278,6 +289,7 @@
"messages.es.xlf", "messages.es.xlf",
"messages.fr.xlf", "messages.fr.xlf",
"messages.it.xlf", "messages.it.xlf",
"messages.ja.xlf",
"messages.ko.xlf", "messages.ko.xlf",
"messages.nl.xlf", "messages.nl.xlf",
"messages.pl.xlf", "messages.pl.xlf",

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

@ -141,6 +141,13 @@
<li> <li>
<a href="../it" title="Ghostfolio in Italiano">Italiano</a> <a href="../it" title="Ghostfolio in Italiano">Italiano</a>
</li> </li>
<!--
<li>
<a href="../ja" title="Ghostfolio in Japanese (日本語)"
>Japanese (日本語)</a
>
</li>
-->
<li> <li>
<a href="../ko" title="Ghostfolio in Korean (한국어)" <a href="../ko" title="Ghostfolio in Korean (한국어)"
>Korean (한국어)</a >Korean (한국어)</a

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

@ -91,6 +91,7 @@ export class GfUserAccountSettingsComponent implements OnInit {
'es', 'es',
'fr', 'fr',
'it', 'it',
// 'ja',
'ko', 'ko',
'nl', 'nl',
'pl', 'pl',

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

@ -103,6 +103,15 @@
>Italiano (<ng-container i18n>Community</ng-container >Italiano (<ng-container i18n>Community</ng-container
>)</mat-option >)</mat-option
> >
<!--
@if (user?.settings?.isExperimentalFeatures) {
<mat-option value="ja"
>Japanese / 日本語 (<ng-container i18n
>Community</ng-container
>)</mat-option
>
}
-->
@if (user?.settings?.isExperimentalFeatures) { @if (user?.settings?.isExperimentalFeatures) {
<mat-option value="ko" <mat-option value="ko"
>Korean / 한국어 (<ng-container i18n >Korean / 한국어 (<ng-container i18n

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

@ -41,6 +41,7 @@ export class GfProductPageComponent {
'Español', 'Español',
'Français', 'Français',
'Italiano', 'Italiano',
// 'Japanese (日本語)',
'Korean (한국어)', 'Korean (한국어)',
'Nederlands', 'Nederlands',
'Português', 'Português',

8781
apps/client/src/locales/messages.ja.xlf

File diff suppressed because it is too large

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

@ -314,6 +314,7 @@ export const SUPPORTED_LANGUAGE_CODES = [
'es', 'es',
'fr', 'fr',
'it', 'it',
// 'ja',
'ko', 'ko',
'nl', 'nl',
'pl', 'pl',

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

@ -23,6 +23,7 @@ import {
es, es,
fr, fr,
it, it,
ja,
ko, ko,
nl, nl,
pl, pl,
@ -262,6 +263,8 @@ export function getDateFnsLocale(aLanguageCode?: string) {
return fr; return fr;
} else if (aLanguageCode === 'it') { } else if (aLanguageCode === 'it') {
return it; return it;
} else if (aLanguageCode === 'ja') {
return ja;
} else if (aLanguageCode === 'ko') { } else if (aLanguageCode === 'ko') {
return ko; return ko;
} else if (aLanguageCode === 'nl') { } else if (aLanguageCode === 'nl') {

Loading…
Cancel
Save