fix(common): extract plural function from i18n locale data files for TS 2.6 (#21626)

Fixes #21608

PR Close #21626
This commit is contained in:
Olivier Combe
2018-01-18 14:08:50 +01:00
committed by Miško Hevery
parent 135a2822ea
commit 97b18b2a5c
527 changed files with 3626 additions and 3274 deletions

View File

@ -9,6 +9,12 @@
// THIS CODE IS GENERATED - DO NOT MODIFY
// See angular/tools/gulp-tasks/cldr/extract.js
function plural(n: number): number {
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
if (i === 1 && v === 0) return 1;
return 5;
}
export default [
'sw-CD',
[
@ -42,11 +48,5 @@ export default [
,
],
[',', '.', ';', '%', '+', '-', 'E', '×', '‰', '∞', 'NaN', ':'],
['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FC', 'Faranga ya Kongo',
function(n: number):
number {
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
if (i === 1 && v === 0) return 1;
return 5;
}
['#,##0.###', '#,##0%', '¤#,##0.00', '#E0'], 'FC', 'Faranga ya Kongo', plural
];