From 2c4560d13a6a34897a3189608431a6e902784921 Mon Sep 17 00:00:00 2001 From: Thomas Camlong Date: Mon, 30 Oct 2023 13:58:37 +0100 Subject: [PATCH] Add Chinese traditional as `zh-tw` --- next-i18next.config.js | 1 + src/tools/language.ts | 12 +++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/next-i18next.config.js b/next-i18next.config.js index 779df3a63..ffc557629 100644 --- a/next-i18next.config.js +++ b/next-i18next.config.js @@ -24,6 +24,7 @@ module.exports = { 'vi', 'uk', 'zh', + 'zh-tw', 'el', 'sk', 'no', diff --git a/src/tools/language.ts b/src/tools/language.ts index 69cabde0e..aba56bac2 100644 --- a/src/tools/language.ts +++ b/src/tools/language.ts @@ -179,14 +179,24 @@ export const languages = [ country: 'VN', locale: 'vi', }, + // Chinese (Simplified) { shortName: 'zh', originalName: '中文', - translatedName: 'Chinese', + translatedName: 'Chinese (Simplified)', emoji: '🇨🇳', country: 'CN', locale: 'zh-cn', }, + // Chinese (Traditional) + { + shortName: 'zh-tw', + originalName: '中文(台灣)', + translatedName: 'Chinese (Traditional)', + emoji: '🇹🇼', + country: 'TW', + locale: 'zh-tw', + }, { originalName: 'Ελληνικά', translatedName: 'Greek',