From 801f6a9e7a9b5a6c8e89057dc5c2146186764772 Mon Sep 17 00:00:00 2001 From: Devrim Mazlum Date: Sun, 16 Apr 2023 20:14:34 +0300 Subject: [PATCH] =?UTF-8?q?feat(i18n):=20add=20support=20for=20Turkish=20(?= =?UTF-8?q?T=C3=BCrk=C3=A7e)=20language=20(tr)=20(#110)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(index.ts): Turkish language support * feat(tr.json): Turkish language support --- src/i18n/index.ts | 4 ++++ src/i18n/tr.json | 6 ++++++ 2 files changed, 10 insertions(+) create mode 100644 src/i18n/tr.json diff --git a/src/i18n/index.ts b/src/i18n/index.ts index 696b41e..23db343 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -15,6 +15,7 @@ import nl from '../i18n/nl.json' assert { type: 'json' }; import ru from '../i18n/ru.json' assert { type: 'json' }; import id_ID from '../i18n/id_ID.json' assert { type: 'json' }; import pl from '../i18n/pl.json' assert { type: 'json' }; +import tr from '../i18n/tr.json' assert { type: 'json' }; import th from '../i18n/th.json' assert { type: 'json' }; export enum I18nLocals { @@ -34,6 +35,7 @@ export enum I18nLocals { 'ru' = 'ru', 'id_ID' = 'id_ID', 'pl' = 'pl', + 'tr' = 'tr', 'th' = 'th', } @@ -55,6 +57,7 @@ export const i18n = { nl, ru, pl, + tr, th }; @@ -76,6 +79,7 @@ export const I18N_CONFIG_ALIAS: { [key: string]: string[] } = { ru: ['ru', 'Russian', 'русский'], id_ID: ['id_ID', 'Bahasa', 'bahasa'], pl: ['pl', 'Polish', 'Polski'], + tr: ['tr', 'Turkish', 'Turkish'], th: ['th', 'Thai', 'ไทย'] }; diff --git a/src/i18n/tr.json b/src/i18n/tr.json new file mode 100644 index 0000000..e667419 --- /dev/null +++ b/src/i18n/tr.json @@ -0,0 +1,6 @@ +{ + "localLanguage": "Turkish", + "commitFix": "fix(server.ts): port değişkeni küçük harfli porttan büyük harfli PORT'a değiştirildi", + "commitFeat": "feat(server.ts): process.env.PORT ortam değişkeni için destek eklendi.", + "commitDescription": "Bağlantı noktası değişkeni artık PORT olarak adlandırıldı ve PORT bir sabit değişken olduğu için bu adlandırma tutarlılığı artırır. Ortam değişkeni desteği, artık process.env.PORT ortam değişkeni aracılığıyla belirtilen herhangi bir kullanılabilir bağlantı noktasında çalışabileceğinden uygulamanın daha esnek olmasını sağlar." +}