fix(common): `locales/global/*.js` are not ES5 compliant (#36342)
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
This commit is contained in:
parent
13ae2d7271
commit
078b0be4dc
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['agq'] = [
|
||||
'agq',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === Math.floor(n) && n >= 0 && n <= 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n));
|
||||
var i = Math.floor(Math.abs(n));
|
||||
if (i === 0 || n === 1) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n));
|
||||
var i = Math.floor(Math.abs(n));
|
||||
if (i === 0 || n === 1) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['az-cyrl'] = [
|
||||
'az-Cyrl',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['bas'] = [
|
||||
'bas',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n % 10 === 1 && !(n % 100 === 11)) return 1;
|
||||
if (n % 10 === Math.floor(n % 10) && n % 10 >= 2 && n % 10 <= 4 &&
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['bm'] = [
|
||||
'bm',
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n));
|
||||
var i = Math.floor(Math.abs(n));
|
||||
if (i === 0 || n === 1) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n));
|
||||
var i = Math.floor(Math.abs(n));
|
||||
if (i === 0 || n === 1) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['bo-in'] = [
|
||||
'bo-IN',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['bo'] = [
|
||||
'bo',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n % 10 === 1 && !(n % 100 === 11 || n % 100 === 71 || n % 100 === 91)) return 1;
|
||||
if (n % 10 === 2 && !(n % 100 === 12 || n % 100 === 72 || n % 100 === 92)) return 2;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['bs-cyrl'] = [
|
||||
'bs-Cyrl',
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0;
|
||||
if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11))
|
||||
return 1;
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0;
|
||||
if (v === 0 && i % 10 === 1 && !(i % 100 === 11) || f % 10 === 1 && !(f % 100 === 11))
|
||||
return 1;
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['ccp-in'] = [
|
||||
'ccp-IN',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['ccp'] = [
|
||||
'ccp',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['ceb'] = [
|
||||
'ceb',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
if (i === Math.floor(i) && i >= 2 && i <= 4 && v === 0) return 3;
|
||||
if (!(v === 0)) return 4;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['cu'] = [
|
||||
'cu',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 0) return 0;
|
||||
if (n === 1) return 1;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)),
|
||||
var i = Math.floor(Math.abs(n)),
|
||||
t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0;
|
||||
if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)),
|
||||
var i = Math.floor(Math.abs(n)),
|
||||
t = parseInt(n.toString().replace(/^[^.]*\.?|0+$/g, ''), 10) || 0;
|
||||
if (n === 1 || !(t === 0) && (i === 0 || i === 1)) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['dav'] = [
|
||||
'dav',
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['dje'] = [
|
||||
'dje',
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length,
|
||||
f = parseInt(n.toString().replace(/^[^.]*\.?/, ''), 10) || 0;
|
||||
if (v === 0 && i % 100 === 1 || f % 100 === 1) return 1;
|
||||
if (v === 0 && i % 100 === 2 || f % 100 === 2) return 2;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['dua'] = [
|
||||
'dua',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['dyo'] = [
|
||||
'dyo',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['dz'] = [
|
||||
'dz',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) { return 5; }
|
||||
global.ng.common.locales['ebu'] = [
|
||||
'ebu',
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
if (n === 1) return 1;
|
||||
return 5;
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -14,9 +14,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
|
@ -13,9 +13,9 @@
|
|||
global.ng = global.ng || {};
|
||||
global.ng.common = global.ng.common || {};
|
||||
global.ng.common.locales = global.ng.common.locales || {};
|
||||
const u = undefined;
|
||||
var u = undefined;
|
||||
function plural(n) {
|
||||
let i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
var i = Math.floor(Math.abs(n)), v = n.toString().replace(/^[^.]*\.?/, '').length;
|
||||
if (i === 1 && v === 0) return 1;
|
||||
return 5;
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue