fix(common): fix a duplicate case in the locale switch (#18941)

This commit is contained in:
Victor Berchet 2017-08-29 17:02:20 -07:00 committed by GitHub
parent 946e5bda22
commit fdd5010832
2 changed files with 3 additions and 6 deletions

View File

@ -4690,10 +4690,8 @@ switch (goog.LOCALE) {
case 'zh_HK':
case 'zh-Hant-HK':
case 'zh_Hant_HK':
case 'zh-Hant':
case 'zh_Hant':
l = [
'zh-Hant',
'zh-Hant-HK',
[
['上午', '下午'],
,

View File

@ -8,7 +8,7 @@
const fs = require('fs');
const yargs = require('yargs').argv;
const {I18N_FOLDER, I18N_DATA_FOLDER, RELATIVE_I18N_DATA_FOLDER, HEADER} = require('./extract');
const {I18N_DATA_FOLDER, RELATIVE_I18N_DATA_FOLDER, HEADER} = require('./extract');
const OUTPUT_NAME = `closure-locale.ts`;
module.exports = (gulp, done) => {
@ -43,9 +43,8 @@ module.exports = (gulp, done) => {
'zh-CN': 'zh-Hans-CN',
'zh-Hans-CN': 'zh-Hans',
'zh-HK': 'zh-Hant-HK',
'zh-Hant-HK': 'zh-Hant',
'zh-TW': 'zh-Hant-TW',
'zh-Hant-TW': 'zh-Hant'
'zh-Hant-TW': 'zh-Hant',
};
if (yargs.locales) {