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',