Browse Source

Set up polski

pull/2650/head
Thomas 2 years ago
parent
commit
6aa0b70a4f
  1. 4
      apps/api/src/assets/sitemap.xml
  2. 12
      apps/client/project.json
  3. 5
      apps/client/src/app/app.component.html
  4. 1
      apps/client/src/app/components/user-account-settings/user-account-settings.component.ts
  5. 4
      apps/client/src/app/components/user-account-settings/user-account-settings.html
  6. 3
      apps/client/src/app/pages/features/features-page.html
  7. 1
      libs/common/src/lib/config.ts
  8. 4
      libs/common/src/lib/helper.ts

4
apps/api/src/assets/sitemap.xml

@ -1092,6 +1092,10 @@
<loc>https://ghostfol.io/nl/veelgestelde-vragen</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod>
</url>
<url>
<loc>https://ghostfol.io/pl</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod>
</url>
<url>
<loc>https://ghostfol.io/pt</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod>

12
apps/client/project.json

@ -60,6 +60,10 @@
"baseHref": "/nl/",
"localize": ["nl"]
},
"development-pl": {
"baseHref": "/pl/",
"localize": ["pl"]
},
"development-pt": {
"baseHref": "/pt/",
"localize": ["pt"]
@ -170,6 +174,9 @@
"development-nl": {
"browserTarget": "client:build:development-nl"
},
"development-pl": {
"browserTarget": "client:build:development-pl"
},
"development-pt": {
"browserTarget": "client:build:development-pt"
},
@ -193,6 +200,7 @@
"messages.fr.xlf",
"messages.it.xlf",
"messages.nl.xlf",
"messages.pl.xlf",
"messages.pt.xlf",
"messages.tr.xlf"
]
@ -235,6 +243,10 @@
"baseHref": "/nl/",
"translation": "apps/client/src/locales/messages.nl.xlf"
},
"pl": {
"baseHref": "/pl/",
"translation": "apps/client/src/locales/messages.pl.xlf"
},
"pt": {
"baseHref": "/pt/",
"translation": "apps/client/src/locales/messages.pt.xlf"

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

@ -150,6 +150,11 @@
<li>
<a href="../nl" title="Ghostfolio in Nederlands">Nederlands</a>
</li>
<!--
<li>
<a href="../pl" title="Ghostfolio in Polski">Polski</a>
</li>
-->
<li>
<a href="../pt" title="Ghostfolio in Português">Português</a>
</li>

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

@ -44,6 +44,7 @@ export class UserAccountSettingsComponent implements OnDestroy, OnInit {
'fr',
'it',
'nl',
'pl',
'pt',
'tr'
];

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

@ -74,6 +74,10 @@
>Nederlands (<ng-container i18n>Community</ng-container
>)</mat-option
>
<mat-option value="pl"
>Polski (<ng-container i18n>Community</ng-container
>)</mat-option
>
<mat-option value="pt"
>Português (<ng-container i18n>Community</ng-container
>)</mat-option

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

@ -245,7 +245,8 @@
<h4 i18n>Multi-Language</h4>
<p class="m-0">
Use Ghostfolio in multiple languages: English, Dutch, French,
German, Italian, Portuguese, Spanish and Turkish are currently
German, Italian,
<!-- Polish, -->Portuguese, Spanish and Turkish are currently
supported.
</p>
</div>

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

@ -101,6 +101,7 @@ export const SUPPORTED_LANGUAGE_CODES = [
'fr',
'it',
'nl',
'pl',
'pt',
'tr'
];

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

@ -10,7 +10,7 @@ import {
parseISO,
subDays
} from 'date-fns';
import { de, es, fr, it, nl, pt, tr } from 'date-fns/locale';
import { de, es, fr, it, nl, pl, pt, tr } from 'date-fns/locale';
import { ghostfolioScraperApiSymbolPrefix, locale } from './config';
import { Benchmark, UniqueAsset } from './interfaces';
@ -106,6 +106,8 @@ export function getDateFnsLocale(aLanguageCode: string) {
return it;
} else if (aLanguageCode === 'nl') {
return nl;
} else if (aLanguageCode === 'pl') {
return pl;
} else if (aLanguageCode === 'pt') {
return pt;
} else if (aLanguageCode === 'tr') {

Loading…
Cancel
Save