diff --git a/apps/api/src/middlewares/html-template.middleware.ts b/apps/api/src/middlewares/html-template.middleware.ts index ceb563fd6..2b7d24cb6 100644 --- a/apps/api/src/middlewares/html-template.middleware.ts +++ b/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'; diff --git a/apps/client/project.json b/apps/client/project.json index 76da6bd1a..03cbde62d 100644 --- a/apps/client/project.json +++ b/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" diff --git a/apps/client/src/app/pages/features/features-page.html b/apps/client/src/app/pages/features/features-page.html index 2495efdd3..c63fa9a49 100644 --- a/apps/client/src/app/pages/features/features-page.html +++ b/apps/client/src/app/pages/features/features-page.html @@ -245,7 +245,7 @@

Multi-Language

Use Ghostfolio in multiple languages: English, Dutch, French, - German, Italian, Portuguese and Spanish are currently + German, Italian, Portuguese, Spanish and Turkish are currently supported.

diff --git a/apps/client/src/app/pages/user-account/user-account-page.component.ts b/apps/client/src/app/pages/user-account/user-account-page.component.ts index f59d1ed40..c02c8bdf1 100644 --- a/apps/client/src/app/pages/user-account/user-account-page.component.ts +++ b/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; diff --git a/apps/client/src/app/pages/user-account/user-account-page.html b/apps/client/src/app/pages/user-account/user-account-page.html index 39948a0b2..debd190c1 100644 --- a/apps/client/src/app/pages/user-account/user-account-page.html +++ b/apps/client/src/app/pages/user-account/user-account-page.html @@ -160,6 +160,10 @@ >Português (Community) + Türkçe (Community) diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.ts index 467986fa1..0313434bf 100644 --- a/libs/common/src/lib/config.ts +++ b/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'; diff --git a/libs/common/src/lib/helper.ts b/libs/common/src/lib/helper.ts index d3a6c9d71..43cc6d9f0 100644 --- a/libs/common/src/lib/helper.ts +++ b/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;