From b4f1bbdfe0f83993679fb252ab164320b6f2e11d Mon Sep 17 00:00:00 2001 From: zenobit Date: Sun, 16 Apr 2023 19:09:51 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=F0=9F=8C=90=20chore(i18n):=20add=20Czech?= =?UTF-8?q?=20language=20(#127)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * 🌐 chore(i18n): add Czech language * 📦 chore(package-lock.json): aktualizace balíčku @dqbd/tiktoken na verzi 1.0.6 Byl aktualizován balíček @dqbd/tiktoken na verzi 1.0.6, což zahrnuje opravy chyb a zlepšení výkonu. --- package-lock.json | 6 ++++++ src/i18n/cs.json | 6 ++++++ src/i18n/index.ts | 4 ++++ 3 files changed, 16 insertions(+) create mode 100644 src/i18n/cs.json diff --git a/package-lock.json b/package-lock.json index 11be715..b69adaf 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,6 +10,7 @@ "license": "MIT", "dependencies": { "@clack/prompts": "^0.6.1", + "@dqbd/tiktoken": "^1.0.2", "axios": "^1.3.4", "chalk": "^5.2.0", "cleye": "^1.3.2", @@ -83,6 +84,11 @@ "node": ">=12" } }, + "node_modules/@dqbd/tiktoken": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/@dqbd/tiktoken/-/tiktoken-1.0.6.tgz", + "integrity": "sha512-umSdeZTy/SbPPKVuZKV/XKyFPmXSN145CcM3iHjBbmhlohBJg7vaDp4cPCW+xNlWL6L2U1sp7T2BD+di2sUKdA==" + }, "node_modules/@esbuild/android-arm": { "version": "0.15.18", "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.15.18.tgz", diff --git a/src/i18n/cs.json b/src/i18n/cs.json new file mode 100644 index 0000000..c4fdcca --- /dev/null +++ b/src/i18n/cs.json @@ -0,0 +1,6 @@ +{ + "localLanguage": "česky", + "commitFix": "fix(server.ts): zlepšení velikosti proměnné port na velká písmena PORT", + "commitFeat": "feat(server.ts): přidání podpory pro proměnnou prostředí process.env.PORT", + "commitDescription": "Proměnná port se nyní jmenuje PORT, což odpovídá konvenci pojmenování, protože PORT je konstanta. Podpora proměnné prostředí process.env.PORT umožňuje snadnější správu nastavení při spuštění." +} diff --git a/src/i18n/index.ts b/src/i18n/index.ts index e7b282e..696b41e 100644 --- a/src/i18n/index.ts +++ b/src/i18n/index.ts @@ -1,4 +1,5 @@ import en from '../i18n/en.json' assert { type: 'json' }; +import cs from '../i18n/cs.json' assert { type: 'json' }; import de from '../i18n/de.json' assert { type: 'json' }; import fr from '../i18n/fr.json' assert { type: 'json' }; import it from '../i18n/it.json' assert { type: 'json' }; @@ -21,6 +22,7 @@ export enum I18nLocals { 'zh_CN' = 'zh_CN', 'zh_TW' = 'zh_TW', 'ja' = 'ja', + 'cs' = 'cs', 'de' = 'de', 'fr' = 'fr', 'nl' = 'nl', @@ -40,6 +42,7 @@ export const i18n = { zh_CN, zh_TW, ja, + cs, de, fr, it, @@ -60,6 +63,7 @@ export const I18N_CONFIG_ALIAS: { [key: string]: string[] } = { zh_TW: ['zh_TW', '繁體中文', '繁體'], ja: ['ja', 'Japanese', 'にほんご'], ko: ['ko', 'Korean', '한국어'], + cs: ['cs', 'Czech', 'česky'], de: ['de', 'German', 'Deutsch'], fr: ['fr', 'French', 'française'], it: ['it', 'Italian', 'italiano'], From 801f6a9e7a9b5a6c8e89057dc5c2146186764772 Mon Sep 17 00:00:00 2001 From: Devrim Mazlum Date: Sun, 16 Apr 2023 20:14:34 +0300 Subject: [PATCH 2/2] =?UTF-8?q?feat(i18n):=20add=20support=20for=20Turkish?= =?UTF-8?q?=20(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." +}