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.',
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.',
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';

14
apps/client/project.json

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

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

@ -245,7 +245,7 @@
<h4 i18n>Multi-Language</h4>
<p class="m-0">
Use Ghostfolio in multiple languages: English, Dutch, French,
German, Italian, Portuguese and Spanish are currently
German, Italian, Portuguese, Spanish and Turkish are currently
supported.
</p>
</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',
'it',
'nl',
'pt'
'pt',
'tr'
];
public price: number;
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
>)</mat-option
>
<mat-option value="tr"
>Türkçe (<ng-container i18n>Community</ng-container
>)</mat-option
>
</mat-select>
</mat-form-field>
</div>

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

@ -101,7 +101,8 @@ export const SUPPORTED_LANGUAGE_CODES = [
'fr',
'it',
'nl',
'pt'
'pt',
'tr'
];
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 Big from 'big.js';
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 { Benchmark, UniqueAsset } from './interfaces';
@ -96,6 +96,8 @@ export function getDateFnsLocale(aLanguageCode: string) {
return nl;
} else if (aLanguageCode === 'pt') {
return pt;
} else if (aLanguageCode === 'tr') {
return tr;
}
return undefined;

Loading…
Cancel
Save