From 9b53e6dc01e7898a7c203fd47f7ea6f3fde30f47 Mon Sep 17 00:00:00 2001 From: myl7 Date: Wed, 1 Jun 2022 16:23:45 +0800 Subject: [PATCH] enable Turkish translation --- components/SwitchLang.tsx | 2 ++ next-i18next.config.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/components/SwitchLang.tsx b/components/SwitchLang.tsx index 1ee32b3..1bcc965 100644 --- a/components/SwitchLang.tsx +++ b/components/SwitchLang.tsx @@ -23,6 +23,8 @@ const localeText = (locale: string): string => { return '🇨🇳 简体中文' case 'hi': return '🇮🇳 हिन्दी' + case 'tr-TR': + return '🇹🇷 Türkçe' default: return '🇬🇧 English' } diff --git a/next-i18next.config.js b/next-i18next.config.js index 2b20f1c..02a592a 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -3,7 +3,7 @@ const path = require('path') module.exports = { i18n: { defaultLocale: 'en', - locales: ['en', 'zh-CN', 'hi'] + locales: ['en', 'zh-CN', 'hi', 'tr-TR'] }, localePath: path.resolve('public/locales'), reloadOnPrerender: process.env.NODE_ENV === 'development',