Browse Source

Setup Turkish

pull/2300/head
Thomas 2 years ago
parent
commit
752e2fe711
  1. 3
      apps/api/src/middlewares/html-template.middleware.ts
  2. 14
      apps/client/project.json
  3. 2
      apps/client/src/app/pages/features/features-page.html
  4. 3
      apps/client/src/app/pages/user-account/user-account-page.component.ts
  5. 4
      apps/client/src/app/pages/user-account/user-account-page.html
  6. 3
      libs/common/src/lib/config.ts
  7. 4
      libs/common/src/lib/helper.ts

3
apps/api/src/middlewares/html-template.middleware.ts

@ -18,7 +18,8 @@ const descriptions = {
fr: 'Ghostfolio est un dashboard de finances personnelles qui permet de suivre vos actifs comme les actions, les ETF ou les crypto-monnaies sur plusieurs plateformes.', fr: 'Ghostfolio est un dashboard de finances personnelles qui permet de suivre vos actifs comme les actions, les ETF ou les crypto-monnaies sur plusieurs plateformes.',
it: 'Ghostfolio è un dashboard di finanza personale per tenere traccia delle vostre attività come azioni, ETF o criptovalute su più piattaforme.', it: 'Ghostfolio è un dashboard di finanza personale per tenere traccia delle vostre attività come azioni, ETF o criptovalute su più piattaforme.',
nl: 'Ghostfolio is een persoonlijk financieel dashboard om uw activa zoals aandelen, ETF’s of cryptocurrencies over meerdere platforms bij te houden.', nl: 'Ghostfolio is een persoonlijk financieel dashboard om uw activa zoals aandelen, ETF’s of cryptocurrencies over meerdere platforms bij te houden.',
pt: 'Ghostfolio é um dashboard de finanças pessoais para acompanhar os seus activos como acções, ETFs ou criptomoedas em múltiplas plataformas.' pt: 'Ghostfolio é um dashboard de finanças pessoais para acompanhar os seus activos como acções, ETFs ou criptomoedas em múltiplas plataformas.',
tr: 'Ghostfolio, hisse senetleri, ETF’ler veya kripto para birimleri gibi varlıklarınızı birden fazla platformda takip etmenizi sağlayan bir kişisel finans panosudur.'
}; };
const title = 'Ghostfolio – Open Source Wealth Management Software'; const title = 'Ghostfolio – Open Source Wealth Management Software';

14
apps/client/project.json

@ -63,6 +63,10 @@
"baseHref": "/pt/", "baseHref": "/pt/",
"localize": ["pt"] "localize": ["pt"]
}, },
"development-tr": {
"baseHref": "/tr/",
"localize": ["tr"]
},
"production": { "production": {
"fileReplacements": [ "fileReplacements": [
{ {
@ -165,6 +169,9 @@
"development-pt": { "development-pt": {
"browserTarget": "client:build:development-pt" "browserTarget": "client:build:development-pt"
}, },
"development-tr": {
"browserTarget": "client:build:development-tr"
},
"production": { "production": {
"browserTarget": "client:build:production" "browserTarget": "client:build:production"
} }
@ -182,7 +189,8 @@
"messages.fr.xlf", "messages.fr.xlf",
"messages.it.xlf", "messages.it.xlf",
"messages.nl.xlf", "messages.nl.xlf",
"messages.pt.xlf" "messages.pt.xlf",
"messages.tr.xlf"
] ]
} }
}, },
@ -226,6 +234,10 @@
"pt": { "pt": {
"baseHref": "/pt/", "baseHref": "/pt/",
"translation": "apps/client/src/locales/messages.pt.xlf" "translation": "apps/client/src/locales/messages.pt.xlf"
},
"tr": {
"baseHref": "/tr/",
"translation": "apps/client/src/locales/messages.tr.xlf"
} }
}, },
"sourceLocale": "en" "sourceLocale": "en"

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

@ -245,7 +245,7 @@
<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 and Spanish are currently German, Italian, Portuguese, Spanish and Turkish are currently
supported. supported.
</p> </p>
</div> </div>

3
apps/client/src/app/pages/user-account/user-account-page.component.ts

@ -66,7 +66,8 @@ export class UserAccountPageComponent implements OnDestroy, OnInit {
'fr', 'fr',
'it', 'it',
'nl', 'nl',
'pt' 'pt',
'tr'
]; ];
public price: number; public price: number;
public priceId: string; public priceId: string;

4
apps/client/src/app/pages/user-account/user-account-page.html

@ -160,6 +160,10 @@
>Português (<ng-container i18n>Community</ng-container >Português (<ng-container i18n>Community</ng-container
>)</mat-option >)</mat-option
> >
<mat-option value="tr"
>Türkçe (<ng-container i18n>Community</ng-container
>)</mat-option
>
</mat-select> </mat-select>
</mat-form-field> </mat-form-field>
</div> </div>

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

@ -101,7 +101,8 @@ export const SUPPORTED_LANGUAGE_CODES = [
'fr', 'fr',
'it', 'it',
'nl', 'nl',
'pt' 'pt',
'tr'
]; ];
export const UNKNOWN_KEY = 'UNKNOWN'; export const UNKNOWN_KEY = 'UNKNOWN';

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

@ -2,7 +2,7 @@ import * as currencies from '@dinero.js/currencies';
import { DataSource } from '@prisma/client'; import { DataSource } from '@prisma/client';
import Big from 'big.js'; import Big from 'big.js';
import { getDate, getMonth, getYear, parse, subDays } from 'date-fns'; import { getDate, getMonth, getYear, parse, subDays } from 'date-fns';
import { de, es, fr, it, nl, pt } from 'date-fns/locale'; import { de, es, fr, it, nl, 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';
@ -96,6 +96,8 @@ export function getDateFnsLocale(aLanguageCode: string) {
return nl; return nl;
} else if (aLanguageCode === 'pt') { } else if (aLanguageCode === 'pt') {
return pt; return pt;
} else if (aLanguageCode === 'tr') {
return tr;
} }
return undefined; return undefined;

Loading…
Cancel
Save