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> <loc>https://ghostfol.io/nl/veelgestelde-vragen</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod> <lastmod>${currentDate}T00:00:00+00:00</lastmod>
</url> </url>
<url>
<loc>https://ghostfol.io/pl</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod>
</url>
<url> <url>
<loc>https://ghostfol.io/pt</loc> <loc>https://ghostfol.io/pt</loc>
<lastmod>${currentDate}T00:00:00+00:00</lastmod> <lastmod>${currentDate}T00:00:00+00:00</lastmod>

12
apps/client/project.json

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

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

@ -150,6 +150,11 @@
<li> <li>
<a href="../nl" title="Ghostfolio in Nederlands">Nederlands</a> <a href="../nl" title="Ghostfolio in Nederlands">Nederlands</a>
</li> </li>
<!--
<li>
<a href="../pl" title="Ghostfolio in Polski">Polski</a>
</li>
-->
<li> <li>
<a href="../pt" title="Ghostfolio in Português">Português</a> <a href="../pt" title="Ghostfolio in Português">Português</a>
</li> </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', 'fr',
'it', 'it',
'nl', 'nl',
'pl',
'pt', 'pt',
'tr' '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 >Nederlands (<ng-container i18n>Community</ng-container
>)</mat-option >)</mat-option
> >
<mat-option value="pl"
>Polski (<ng-container i18n>Community</ng-container
>)</mat-option
>
<mat-option value="pt" <mat-option value="pt"
>Português (<ng-container i18n>Community</ng-container >Português (<ng-container i18n>Community</ng-container
>)</mat-option >)</mat-option

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

@ -245,7 +245,8 @@
<h4 i18n>Multi-Language</h4> <h4 i18n>Multi-Language</h4>
<p class="m-0"> <p class="m-0">
Use Ghostfolio in multiple languages: English, Dutch, French, 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. supported.
</p> </p>
</div> </div>

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

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

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

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

Loading…
Cancel
Save