Open Source Wealth Management Software. Angular + NestJS + Prisma + Nx + TypeScript 🤍
TypeScript angularetffinancefintechghostfoliohacktoberfestinvestingnestjsosspersonal-financeportfolioprismasoftwarestocktrackertradingtypescriptwealth-managementweb
Feature/setup language localization for portuguese (#2076)
Thomas Kaul908876ca6e2b
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 9edeeebb04..8abccaae62 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0### Added- Extended the feature overview page by liabilities+- Set up the language localization for Português (`pt`)### Changed@@ -811,7 +812,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0- Added support for the dividend timeline grouped by year- Added support for the investment timeline grouped by year- Set up the language localization for Français (`fr`)-- Set up the language localization for Português (`pt`)### Changeddiff --git a/apps/client/src/app/app-routing.module.ts b/apps/client/src/app/app-routing.module.tsindex c0f87abf40..39fb5952c9 100644--- a/apps/client/src/app/app-routing.module.ts+++ b/apps/client/src/app/app-routing.module.ts@@ -18,36 +18,6 @@ const routes: Routes = [loadChildren: () =>import('./pages/about/about-page.module').then((m) => m.AboutPageModule)})),- ...[- 'about/changelog',- /////- 'a-propos/changelog',- 'informazioni-su/changelog',- 'over/changelog',- 'sobre/changelog',- 'ueber-uns/changelog'- ].map((path) => ({- path,- loadChildren: () =>- import('./pages/about/changelog/changelog-page.module').then(- (m) => m.ChangelogPageModule- )- })),- ...[- 'about/privacy-policy',- /////- 'a-propos/politique-de-confidentialite',- 'informazioni-su/informativa-sulla-privacy',- 'over/privacybeleid',- 'sobre/politica-de-privacidad',- 'ueber-uns/datenschutzbestimmungen'- ].map((path) => ({- path,- loadChildren: () =>- import('./pages/about/privacy-policy/privacy-policy-page.module').then(- (m) => m.PrivacyPolicyPageModule- )- })),{path: 'account',loadChildren: () =>@@ -179,6 +149,7 @@ const routes: Routes = ['domande-piu-frequenti','foire-aux-questions','haeufig-gestellte-fragen',+ 'perguntas-mais-frequentes','preguntas-mas-frecuentes','vaak-gestelde-vragen'].map((path) => ({@@ -243,6 +214,7 @@ const routes: Routes = ['pricing',/////'precios',+ 'precos','preise','prezzi','prijzen',@@ -259,6 +231,7 @@ const routes: Routes = [/////'enregistrement','iscrizione',+ 'registo','registratie','registrierung','registro'diff --git a/apps/client/src/app/app.component.html b/apps/client/src/app/app.component.htmlindex 761a18a4e3..fa135f2fa5 100644--- a/apps/client/src/app/app.component.html+++ b/apps/client/src/app/app.component.html@@ -150,6 +150,9 @@<li><a href="../nl" title="Ghostfolio in Nederlands">Nederlands</a></li>+ <li>+ <a href="../pt" title="Ghostfolio in Português">Português</a>+ </li></ul></div></div>diff --git a/apps/client/src/app/pages/about/about-page-routing.module.ts b/apps/client/src/app/pages/about/about-page-routing.module.tsindex edc9393401..9183a9b474 100644--- a/apps/client/src/app/pages/about/about-page-routing.module.ts+++ b/apps/client/src/app/pages/about/about-page-routing.module.ts@@ -25,6 +25,7 @@ const routes: Routes = [...['license',/////+ 'licenca','licence','licencia','licentie',@@ -37,13 +38,22 @@ const routes: Routes = [(m) => m.LicensePageModule)})),- {- path: 'privacy-policy',+ ...[+ 'privacy-policy',+ /////+ 'datenschutzbestimmungen',+ 'informativa-sulla-privacy',+ 'politique-de-confidentialite',+ 'politica-de-privacidad',+ 'politica-de-privacidade',+ 'privacybeleid'+ ].map((path) => ({+ path,loadChildren: () =>import('./privacy-policy/privacy-policy-page.module').then((m) => m.PrivacyPolicyPageModule)- }+ }))],component: AboutPageComponent,path: '',diff --git a/apps/client/src/app/pages/account/account-page.html b/apps/client/src/app/pages/account/account-page.htmlindex 4db7e68f8f..7f9fb57a50 100644--- a/apps/client/src/app/pages/account/account-page.html+++ b/apps/client/src/app/pages/account/account-page.html@@ -156,10 +156,10 @@>Nederlands (<ng-container i18n>Community</ng-container>)</mat-option>- <!--<mat-option value="pt"+ <mat-option value="pt">Português (<ng-container i18n>Community</ng-container>)</mat-option- >-->+ ></mat-select></mat-form-field></div>diff --git a/apps/client/src/app/pages/features/features-page.html b/apps/client/src/app/pages/features/features-page.htmlindex d898cfca08..9f5d2a29de 100644--- a/apps/client/src/app/pages/features/features-page.html+++ b/apps/client/src/app/pages/features/features-page.html@@ -246,10 +246,8 @@<h4 i18n>Multi-Language</h4><p class="m-0">Use Ghostfolio in multiple languages: English, Dutch, French,- German, Italian<ng-container *ngIf="false"- >, Portuguese</ng-container- >- and Spanish are currently supported.+ German, Italian, Portuguese and Spanish are currently+ supported.</p></div></mat-card-content>diff --git a/apps/client/src/assets/sitemap.xml b/apps/client/src/assets/sitemap.xmlindex 56c671783a..7189ae5b1a 100644--- a/apps/client/src/assets/sitemap.xml+++ b/apps/client/src/assets/sitemap.xml@@ -58,6 +58,10 @@<loc>https://ghostfol.io/de/ueber-uns/changelog</loc><lastmod>2023-06-01T00:00:00+00:00</lastmod></url>+ <url>+ <loc>https://ghostfol.io/de/ueber-uns/datenschutzbestimmungen</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url><url><loc>https://ghostfol.io/de/ueber-uns/lizenz</loc><lastmod>2023-06-01T00:00:00+00:00</lastmod>@@ -356,4 +360,52 @@<loc>https://ghostfol.io/nl/vaak-gestelde-vragen</loc><lastmod>2023-06-01T00:00:00+00:00</lastmod></url>+ <url>+ <loc>https://ghostfol.io/pt/blog</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/funcionalidades</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/mercados</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/open</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/perguntas-mais-frequentes</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/precos</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/recursos</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/registo</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/sobre</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/sobre/changelog</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/sobre/licenca</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url>+ <url>+ <loc>https://ghostfol.io/pt/sobre/politica-de-privacidade</loc>+ <lastmod>2023-06-01T00:00:00+00:00</lastmod>+ </url></urlset>