From a0ad61beb85fe5f91481d791d966f6e693cd87ac Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Thu, 4 May 2023 06:06:39 +0200 Subject: [PATCH 1/2] =?UTF-8?q?=E2=9C=A8=20Add=20turkish=20translation=20l?= =?UTF-8?q?ocale?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next-i18next.config.js | 1 + src/tools/language.ts | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/next-i18next.config.js b/next-i18next.config.js index d39ce661f..5a68b053e 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -27,6 +27,7 @@ module.exports = { 'el', 'sk', 'no', + 'tk', ], localeDetection: true, diff --git a/src/tools/language.ts b/src/tools/language.ts index 8974e62a4..b2fb54a0f 100644 --- a/src/tools/language.ts +++ b/src/tools/language.ts @@ -151,6 +151,12 @@ export const languages: Language[] = [ translatedName: 'Greek', emoji: '🇬🇷', }, + { + shortName: 'tr', + originalName: 'Türkçe', + translatedName: 'Turkish', + emoji: '🇹🇷', + }, ]; export const getLanguageByCode = (code: string | null) => From 400c5d12292154194c8769acac1084182fda0846 Mon Sep 17 00:00:00 2001 From: Meier Lukas Date: Thu, 4 May 2023 06:13:45 +0200 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=90=9B=20Fix=20failing=20build=20by?= =?UTF-8?q?=20adding=20turkish=20locale=20directory?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/locales/tk/.gitkeep | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 public/locales/tk/.gitkeep diff --git a/public/locales/tk/.gitkeep b/public/locales/tk/.gitkeep new file mode 100644 index 000000000..e69de29bb