Remap zh-TW to zh-Hant to match Traditional Chinese in other regions

This commit is contained in:
Jamie Kyle 2023-05-04 16:50:14 -07:00 committed by Josh Perez
parent 593ae82c7f
commit ed539c31b8
4 changed files with 12 additions and 3 deletions

View file

@ -35,7 +35,9 @@ describe('locale', async () => {
await testCase(['an', 'fr-FR'], 'fr'); // If we ever add support for Aragonese, this test will fail.
// Specific cases we want to ensure work as expected
await testCase(['zh-Hant-TW'], 'zh-TW');
await testCase(['zh-TW'], 'zh-Hant');
await testCase(['zh-Hant-TW'], 'zh-Hant');
await testCase(['zh-Hant-CA'], 'zh-Hant');
await testCase(['zh-Hant-HK'], 'zh-HK');
await testCase(['zh'], 'zh-CN');
await testCase(['yue'], 'yue');