diff --git a/client/i18n/locales.test.js b/client/i18n/locales.test.js index 9f6f0d5479..56bb9f54ef 100644 --- a/client/i18n/locales.test.js +++ b/client/i18n/locales.test.js @@ -1,7 +1,6 @@ /* global expect */ import { availableLangs, - i18nextCodes, langDisplayNames, langCodes } from '../../config/i18n/all-langs'; @@ -45,10 +44,6 @@ describe('Locale tests:', () => { }); }); - test(`has a two character entry in the i18nextCodes variable`, () => { - expect(i18nextCodes[lang].length).toBe(2); - }); - test(`has an entry in the langDisplayNames variable`, () => { expect(langDisplayNames[lang].length).toBeGreaterThan(0); }); diff --git a/config/i18n/all-langs.js b/config/i18n/all-langs.js index 53c910c9f8..de460f6d98 100644 --- a/config/i18n/all-langs.js +++ b/config/i18n/all-langs.js @@ -16,15 +16,15 @@ const i18nextCodes = { english: 'en', espanol: 'es', chinese: 'zh', - 'chinese-traditional': 'zh' + 'chinese-traditional': 'zh-Hant' }; // These are for the language selector dropdown menu in the footer const langDisplayNames = { english: 'English', espanol: 'Español', - chinese: '中文', - 'chinese-traditional': '古文' + chinese: '中文(简体字)', + 'chinese-traditional': '中文(繁體字)' }; /* These are for formatting dates and numbers. Used with JS .toLocaleString().