2017-07-20 05:00:44 -04:00
|
|
|
|
/**
|
|
|
|
|
* @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
|
|
|
|
|
|
2018-04-09 08:15:00 -04:00
|
|
|
|
const u = undefined;
|
|
|
|
|
|
2018-01-18 08:08:50 -05:00
|
|
|
|
function plural(n: number): number {
|
|
|
|
|
let v = n.toString().replace(/^[^.]*\.?/, '').length,
|
|
|
|
|
f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0;
|
|
|
|
|
if (n % 10 === 0 || n % 100 === Math.floor(n % 100) && n % 100 >= 11 && n % 100 <= 19 ||
|
|
|
|
|
v === 2 && f % 100 === Math.floor(f % 100) && f % 100 >= 11 && f % 100 <= 19)
|
|
|
|
|
return 0;
|
|
|
|
|
if (n % 10 === 1 && !(n % 100 === 11) || v === 2 && f % 10 === 1 && !(f % 100 === 11) ||
|
|
|
|
|
!(v === 2) && f % 10 === 1)
|
|
|
|
|
return 1;
|
|
|
|
|
return 5;
|
|
|
|
|
}
|
|
|
|
|
|
2017-07-20 05:00:44 -04:00
|
|
|
|
export default [
|
2018-04-09 08:15:00 -04:00
|
|
|
|
'prg', [['AM', 'PM'], u, u], u,
|
|
|
|
|
[['S', 'M', 'T', 'W', 'T', 'F', 'S'], ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'], u, u], u,
|
2017-07-20 05:00:44 -04:00
|
|
|
|
[
|
|
|
|
|
['1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12'],
|
2018-04-09 08:15:00 -04:00
|
|
|
|
['M01', 'M02', 'M03', 'M04', 'M05', 'M06', 'M07', 'M08', 'M09', 'M10', 'M11', 'M12'], u
|
2017-07-20 05:00:44 -04:00
|
|
|
|
],
|
2018-04-09 08:15:00 -04:00
|
|
|
|
u, [['BCE', 'CE'], u, u], 1, [6, 0], ['y-MM-dd', 'y MMM d', 'y MMMM d', 'y MMMM d, EEEE'],
|
|
|
|
|
['HH:mm', 'HH:mm:ss', 'HH:mm:ss z', 'HH:mm:ss zzzz'], ['{1} {0}', u, u, u],
|
2017-07-20 05:00:44 -04:00
|
|
|
|
['.', ',', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'],
|
2019-11-11 17:03:58 -05:00
|
|
|
|
['#,##0.###', '#,##0%', '¤ #,##0.00', '#E0'], u, u,
|
|
|
|
|
{'JPY': ['JP¥', '¥'], 'USD': ['US$', '$']}, plural
|
2017-07-20 05:00:44 -04:00
|
|
|
|
];
|