refactor: update CLDR data for closure locale & use a const for undefined (#23372)

PR Close #23372
This commit is contained in:
Olivier Combe 2018-04-13 23:35:20 +02:00 committed by Igor Minar
parent 12f90ef428
commit d1177c75f8
2 changed files with 938 additions and 2073 deletions

File diff suppressed because it is too large Load Diff

View File

@ -116,7 +116,8 @@ function generateAllLocalesFile(LOCALES, ALIASES) {
.replace(`${HEADER}\n`, '')
.replace('export default ', `export const locale_${localeName} = `)
.replace('function plural', `function plural_${localeName}`)
.replace(/,(\n | )plural/, `, plural_${localeName}`);
.replace(/,(\n | )plural/, `, plural_${localeName}`)
.replace('const u = undefined;\n\n', '');
}
}
@ -140,6 +141,8 @@ function generateAllLocalesFile(LOCALES, ALIASES) {
return `${HEADER}
import {registerLocaleData} from '../src/i18n/locale_data';
const u = undefined;
${LOCALES.map(locale => `${existingLocalesData[locale]}`).join('\n')}
let l: any;