078b0be4dc
Although this code has been part of Angular 9.x I only noticed this error when upgrading to Angular 9.1.x because historically the source locale data was not injected when localizing, but as of angular/angular-cli#16394 (9.1.0) it is now included. This tipped me off that my other bundles were not being built properly, and this change allows me to build a valid ES5 bundle (I have also added a verification step to my build pipeline to alert me if this error appears again in any of my bundles). I found the `locales/global/*.js` file paths being referenced by the `I18nOptions` in @angular-devkit/build-angular/src/utils/i18n-options.ts, and following that it looks like it is actually loaded and used in @angular-devkit/build-angular/src/utils/process-bundle.ts. I saw the function `terserMangle` does appear that it is likely aware of the build being ES5, but I'm not sure why this is not producing a valid ES5 bundle. This change updates `tools/gulp-tasks/cldr/extract.js` to produce ES5 compliant `locales/global/*.js` and that fixes my issue. However, I am not sure if @angular-devkit/build-angular should be modified to produce a valid ES5 bundle instead or if the files could be TypeScript rather than JavaScript files. A test that a valid ES5 bundle is produced would be helpful, and I hope this is reproducible and not some issue with my config. PR Close #36342
120 lines
3.4 KiB
JavaScript
120 lines
3.4 KiB
JavaScript
/**
|
||
* @license
|
||
* Copyright Google Inc. All Rights Reserved.
|
||
*
|
||
* Use of this source code is governed by an MIT-style license that can be
|
||
* found in the LICENSE file at https://angular.io/license
|
||
*/
|
||
|
||
// THIS CODE IS GENERATED - DO NOT MODIFY
|
||
// See angular/tools/gulp-tasks/cldr/extract.js
|
||
|
||
(function(global) {
|
||
global.ng = global.ng || {};
|
||
global.ng.common = global.ng.common || {};
|
||
global.ng.common.locales = global.ng.common.locales || {};
|
||
var u = undefined;
|
||
function plural(n) {
|
||
var i = Math.floor(Math.abs(n));
|
||
if (i === 0 || i === 1) return 1;
|
||
return 5;
|
||
}
|
||
global.ng.common.locales['fr-wf'] = [
|
||
'fr-WF',
|
||
[['AM', 'PM'], u, u],
|
||
u,
|
||
[
|
||
['D', 'L', 'M', 'M', 'J', 'V', 'S'], ['dim.', 'lun.', 'mar.', 'mer.', 'jeu.', 'ven.', 'sam.'],
|
||
['dimanche', 'lundi', 'mardi', 'mercredi', 'jeudi', 'vendredi', 'samedi'],
|
||
['di', 'lu', 'ma', 'me', 'je', 've', 'sa']
|
||
],
|
||
u,
|
||
[
|
||
['J', 'F', 'M', 'A', 'M', 'J', 'J', 'A', 'S', 'O', 'N', 'D'],
|
||
[
|
||
'janv.', 'févr.', 'mars', 'avr.', 'mai', 'juin', 'juil.', 'août', 'sept.', 'oct.', 'nov.',
|
||
'déc.'
|
||
],
|
||
[
|
||
'janvier', 'février', 'mars', 'avril', 'mai', 'juin', 'juillet', 'août', 'septembre',
|
||
'octobre', 'novembre', 'décembre'
|
||
]
|
||
],
|
||
u,
|
||
[['av. J.-C.', 'ap. J.-C.'], u, ['avant Jésus-Christ', 'après Jésus-Christ']],
|
||
1,
|
||
[6, 0],
|
||
['dd/MM/y', 'd MMM y', 'd MMMM y', 'EEEE d MMMM y'],
|
||
['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'],
|
||
['{1} {0}', '{1} \'à\' {0}', u, u],
|
||
[',', '\u202f', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'],
|
||
['#,##0.###', '#,##0 %', '#,##0.00 ¤', '#E0'],
|
||
'XPF',
|
||
'FCFP',
|
||
'franc CFP',
|
||
{
|
||
'ARS': ['$AR', '$'],
|
||
'AUD': ['$AU', '$'],
|
||
'BEF': ['FB'],
|
||
'BMD': ['$BM', '$'],
|
||
'BND': ['$BN', '$'],
|
||
'BZD': ['$BZ', '$'],
|
||
'CAD': ['$CA', '$'],
|
||
'CLP': ['$CL', '$'],
|
||
'CNY': [u, '¥'],
|
||
'COP': ['$CO', '$'],
|
||
'CYP': ['£CY'],
|
||
'EGP': [u, '£E'],
|
||
'FJD': ['$FJ', '$'],
|
||
'FKP': ['£FK', '£'],
|
||
'FRF': ['F'],
|
||
'GBP': ['£GB', '£'],
|
||
'GIP': ['£GI', '£'],
|
||
'HKD': [u, '$'],
|
||
'IEP': ['£IE'],
|
||
'ILP': ['£IL'],
|
||
'ITL': ['₤IT'],
|
||
'JPY': [u, '¥'],
|
||
'KMF': [u, 'FC'],
|
||
'LBP': ['£LB', '£L'],
|
||
'MTP': ['£MT'],
|
||
'MXN': ['$MX', '$'],
|
||
'NAD': ['$NA', '$'],
|
||
'NIO': [u, '$C'],
|
||
'NZD': ['$NZ', '$'],
|
||
'RHD': ['$RH'],
|
||
'RON': [u, 'L'],
|
||
'RWF': [u, 'FR'],
|
||
'SBD': ['$SB', '$'],
|
||
'SGD': ['$SG', '$'],
|
||
'SRD': ['$SR', '$'],
|
||
'TOP': [u, '$T'],
|
||
'TTD': ['$TT', '$'],
|
||
'TWD': [u, 'NT$'],
|
||
'USD': ['$US', '$'],
|
||
'UYU': ['$UY', '$'],
|
||
'WST': ['$WS'],
|
||
'XCD': [u, '$'],
|
||
'XPF': ['FCFP'],
|
||
'ZMW': [u, 'Kw']
|
||
},
|
||
'ltr',
|
||
plural,
|
||
[
|
||
[
|
||
['minuit', 'midi', 'mat.', 'ap.m.', 'soir', 'nuit'], u,
|
||
['minuit', 'midi', 'du matin', 'de l’après-midi', 'du soir', 'du matin']
|
||
],
|
||
[
|
||
['minuit', 'midi', 'mat.', 'ap.m.', 'soir', 'nuit'], u,
|
||
['minuit', 'midi', 'matin', 'après-midi', 'soir', 'nuit']
|
||
],
|
||
[
|
||
'00:00', '12:00', ['04:00', '12:00'], ['12:00', '18:00'], ['18:00', '24:00'],
|
||
['00:00', '04:00']
|
||
]
|
||
]
|
||
];
|
||
})(typeof globalThis !== 'undefined' && globalThis || typeof global !== 'undefined' && global ||
|
||
typeof window !== 'undefined' && window);
|