Best JavaScript code snippet using stryker-parent
pluralrules.js
Source:pluralrules.js
1// Copyright 2012 The Closure Library Authors. All Rights Reserved.2//3// Licensed under the Apache License, Version 2.0 (the "License");4// you may not use this file except in compliance with the License.5// You may obtain a copy of the License at6//7// http://www.apache.org/licenses/LICENSE-2.08//9// Unless required by applicable law or agreed to in writing, software10// distributed under the License is distributed on an "AS-IS" BASIS,11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.12// See the License for the specific language governing permissions and13// limitations under the License.14/**15 * @fileoverview Plural rules.16 *17 * This file is autogenerated by script:18 * http://go/generate_pluralrules.py19 * File generated from CLDR ver. 30.0.220 *21 * Before check in, this file could have been manually edited. This is to22 * incorporate changes before we could fix CLDR. All manual modification must be23 * documented in this section, and should be removed after those changes land to24 * CLDR.25 */26// clang-format off27goog.provide('goog.i18n.pluralRules');28/**29 * Plural pattern keyword30 * @enum {string}31 */32goog.i18n.pluralRules.Keyword = {33 ZERO: 'zero',34 ONE: 'one',35 TWO: 'two',36 FEW: 'few',37 MANY: 'many',38 OTHER: 'other'39};40/**41 * Default Plural select rule.42 * @param {number} n The count of items.43 * @param {number=} opt_precision optional, precision.44 * @return {goog.i18n.pluralRules.Keyword} Default value.45 * @private46 */47goog.i18n.pluralRules.defaultSelect_ = function(n, opt_precision) {48 return goog.i18n.pluralRules.Keyword.OTHER;49};50/**51 * Returns the fractional part of a number (3.1416 => 1416)52 * @param {number} n The count of items.53 * @return {number} The fractional part.54 * @private55 */56goog.i18n.pluralRules.decimals_ = function(n) {57 var str = n + '';58 var result = str.indexOf('.');59 return (result == -1) ? 0 : str.length - result - 1;60};61/**62 * Calculates v and f as per CLDR plural rules.63 * The short names for parameters / return match the CLDR syntax and UTS #3564 * (http://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax)65 * @param {number} n The count of items.66 * @param {number=} opt_precision optional, precision.67 * @return {!{v:number, f:number}} The v and f.68 * @private69 */70goog.i18n.pluralRules.get_vf_ = function(n, opt_precision) {71 var DEFAULT_DIGITS = 3;72 if (undefined === opt_precision) {73 var v = Math.min(goog.i18n.pluralRules.decimals_(n), DEFAULT_DIGITS);74 } else {75 var v = opt_precision;76 }77 var base = Math.pow(10, v);78 var f = ((n * base) | 0) % base;79 return {v: v, f: f};80};81/**82 * Calculates w and t as per CLDR plural rules.83 * The short names for parameters / return match the CLDR syntax and UTS #3584 * (http://unicode.org/reports/tr35/tr35-numbers.html#Plural_rules_syntax)85 * @param {number} v Calculated previously.86 * @param {number} f Calculated previously.87 * @return {!{w:number, t:number}} The w and t.88 * @private89 */90goog.i18n.pluralRules.get_wt_ = function(v, f) {91 if (f === 0) {92 return {w: 0, t: 0};93 }94 while ((f % 10) === 0) {95 f /= 10;96 v--;97 }98 return {w: v, t: f};99};100/**101 * Plural select rules for fil locale102 *103 * @param {number} n The count of items.104 * @param {number=} opt_precision Precision for number formatting, if not default.105 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.106 * @private107 */108goog.i18n.pluralRules.filSelect_ = function(n, opt_precision) {109 var i = n | 0;110 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);111 if (vf.v == 0 && (i == 1 || i == 2 || i == 3) || vf.v == 0 && i % 10 != 4 && i % 10 != 6 && i % 10 != 9 || vf.v != 0 && vf.f % 10 != 4 && vf.f % 10 != 6 && vf.f % 10 != 9) {112 return goog.i18n.pluralRules.Keyword.ONE;113 }114 return goog.i18n.pluralRules.Keyword.OTHER;115};116/**117 * Plural select rules for pt_PT locale118 *119 * @param {number} n The count of items.120 * @param {number=} opt_precision Precision for number formatting, if not default.121 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.122 * @private123 */124goog.i18n.pluralRules.pt_PTSelect_ = function(n, opt_precision) {125 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);126 if (n == 1 && vf.v == 0) {127 return goog.i18n.pluralRules.Keyword.ONE;128 }129 return goog.i18n.pluralRules.Keyword.OTHER;130};131/**132 * Plural select rules for br locale133 *134 * @param {number} n The count of items.135 * @param {number=} opt_precision Precision for number formatting, if not default.136 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.137 * @private138 */139goog.i18n.pluralRules.brSelect_ = function(n, opt_precision) {140 if (n % 10 == 1 && n % 100 != 11 && n % 100 != 71 && n % 100 != 91) {141 return goog.i18n.pluralRules.Keyword.ONE;142 }143 if (n % 10 == 2 && n % 100 != 12 && n % 100 != 72 && n % 100 != 92) {144 return goog.i18n.pluralRules.Keyword.TWO;145 }146 if ((n % 10 >= 3 && n % 10 <= 4 || n % 10 == 9) && (n % 100 < 10 || n % 100 > 19) && (n % 100 < 70 || n % 100 > 79) && (n % 100 < 90 || n % 100 > 99)) {147 return goog.i18n.pluralRules.Keyword.FEW;148 }149 if (n != 0 && n % 1000000 == 0) {150 return goog.i18n.pluralRules.Keyword.MANY;151 }152 return goog.i18n.pluralRules.Keyword.OTHER;153};154/**155 * Plural select rules for sr locale156 *157 * @param {number} n The count of items.158 * @param {number=} opt_precision Precision for number formatting, if not default.159 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.160 * @private161 */162goog.i18n.pluralRules.srSelect_ = function(n, opt_precision) {163 var i = n | 0;164 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);165 if (vf.v == 0 && i % 10 == 1 && i % 100 != 11 || vf.f % 10 == 1 && vf.f % 100 != 11) {166 return goog.i18n.pluralRules.Keyword.ONE;167 }168 if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14) || vf.f % 10 >= 2 && vf.f % 10 <= 4 && (vf.f % 100 < 12 || vf.f % 100 > 14)) {169 return goog.i18n.pluralRules.Keyword.FEW;170 }171 return goog.i18n.pluralRules.Keyword.OTHER;172};173/**174 * Plural select rules for ro locale175 *176 * @param {number} n The count of items.177 * @param {number=} opt_precision Precision for number formatting, if not default.178 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.179 * @private180 */181goog.i18n.pluralRules.roSelect_ = function(n, opt_precision) {182 var i = n | 0;183 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);184 if (i == 1 && vf.v == 0) {185 return goog.i18n.pluralRules.Keyword.ONE;186 }187 if (vf.v != 0 || n == 0 || n != 1 && n % 100 >= 1 && n % 100 <= 19) {188 return goog.i18n.pluralRules.Keyword.FEW;189 }190 return goog.i18n.pluralRules.Keyword.OTHER;191};192/**193 * Plural select rules for hi locale194 *195 * @param {number} n The count of items.196 * @param {number=} opt_precision Precision for number formatting, if not default.197 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.198 * @private199 */200goog.i18n.pluralRules.hiSelect_ = function(n, opt_precision) {201 var i = n | 0;202 if (i == 0 || n == 1) {203 return goog.i18n.pluralRules.Keyword.ONE;204 }205 return goog.i18n.pluralRules.Keyword.OTHER;206};207/**208 * Plural select rules for fr locale209 *210 * @param {number} n The count of items.211 * @param {number=} opt_precision Precision for number formatting, if not default.212 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.213 * @private214 */215goog.i18n.pluralRules.frSelect_ = function(n, opt_precision) {216 var i = n | 0;217 if (i == 0 || i == 1) {218 return goog.i18n.pluralRules.Keyword.ONE;219 }220 return goog.i18n.pluralRules.Keyword.OTHER;221};222/**223 * Plural select rules for cs locale224 *225 * @param {number} n The count of items.226 * @param {number=} opt_precision Precision for number formatting, if not default.227 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.228 * @private229 */230goog.i18n.pluralRules.csSelect_ = function(n, opt_precision) {231 var i = n | 0;232 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);233 if (i == 1 && vf.v == 0) {234 return goog.i18n.pluralRules.Keyword.ONE;235 }236 if (i >= 2 && i <= 4 && vf.v == 0) {237 return goog.i18n.pluralRules.Keyword.FEW;238 }239 if (vf.v != 0) {240 return goog.i18n.pluralRules.Keyword.MANY;241 }242 return goog.i18n.pluralRules.Keyword.OTHER;243};244/**245 * Plural select rules for pl locale246 *247 * @param {number} n The count of items.248 * @param {number=} opt_precision Precision for number formatting, if not default.249 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.250 * @private251 */252goog.i18n.pluralRules.plSelect_ = function(n, opt_precision) {253 var i = n | 0;254 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);255 if (i == 1 && vf.v == 0) {256 return goog.i18n.pluralRules.Keyword.ONE;257 }258 if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) {259 return goog.i18n.pluralRules.Keyword.FEW;260 }261 if (vf.v == 0 && i != 1 && i % 10 >= 0 && i % 10 <= 1 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 12 && i % 100 <= 14) {262 return goog.i18n.pluralRules.Keyword.MANY;263 }264 return goog.i18n.pluralRules.Keyword.OTHER;265};266/**267 * Plural select rules for shi locale268 *269 * @param {number} n The count of items.270 * @param {number=} opt_precision Precision for number formatting, if not default.271 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.272 * @private273 */274goog.i18n.pluralRules.shiSelect_ = function(n, opt_precision) {275 var i = n | 0;276 if (i == 0 || n == 1) {277 return goog.i18n.pluralRules.Keyword.ONE;278 }279 if (n >= 2 && n <= 10) {280 return goog.i18n.pluralRules.Keyword.FEW;281 }282 return goog.i18n.pluralRules.Keyword.OTHER;283};284/**285 * Plural select rules for lv locale286 *287 * @param {number} n The count of items.288 * @param {number=} opt_precision Precision for number formatting, if not default.289 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.290 * @private291 */292goog.i18n.pluralRules.lvSelect_ = function(n, opt_precision) {293 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);294 if (n % 10 == 0 || n % 100 >= 11 && n % 100 <= 19 || vf.v == 2 && vf.f % 100 >= 11 && vf.f % 100 <= 19) {295 return goog.i18n.pluralRules.Keyword.ZERO;296 }297 if (n % 10 == 1 && n % 100 != 11 || vf.v == 2 && vf.f % 10 == 1 && vf.f % 100 != 11 || vf.v != 2 && vf.f % 10 == 1) {298 return goog.i18n.pluralRules.Keyword.ONE;299 }300 return goog.i18n.pluralRules.Keyword.OTHER;301};302/**303 * Plural select rules for iu locale304 *305 * @param {number} n The count of items.306 * @param {number=} opt_precision Precision for number formatting, if not default.307 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.308 * @private309 */310goog.i18n.pluralRules.iuSelect_ = function(n, opt_precision) {311 if (n == 1) {312 return goog.i18n.pluralRules.Keyword.ONE;313 }314 if (n == 2) {315 return goog.i18n.pluralRules.Keyword.TWO;316 }317 return goog.i18n.pluralRules.Keyword.OTHER;318};319/**320 * Plural select rules for he locale321 *322 * @param {number} n The count of items.323 * @param {number=} opt_precision Precision for number formatting, if not default.324 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.325 * @private326 */327goog.i18n.pluralRules.heSelect_ = function(n, opt_precision) {328 var i = n | 0;329 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);330 if (i == 1 && vf.v == 0) {331 return goog.i18n.pluralRules.Keyword.ONE;332 }333 if (i == 2 && vf.v == 0) {334 return goog.i18n.pluralRules.Keyword.TWO;335 }336 if (vf.v == 0 && (n < 0 || n > 10) && n % 10 == 0) {337 return goog.i18n.pluralRules.Keyword.MANY;338 }339 return goog.i18n.pluralRules.Keyword.OTHER;340};341/**342 * Plural select rules for mt locale343 *344 * @param {number} n The count of items.345 * @param {number=} opt_precision Precision for number formatting, if not default.346 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.347 * @private348 */349goog.i18n.pluralRules.mtSelect_ = function(n, opt_precision) {350 if (n == 1) {351 return goog.i18n.pluralRules.Keyword.ONE;352 }353 if (n == 0 || n % 100 >= 2 && n % 100 <= 10) {354 return goog.i18n.pluralRules.Keyword.FEW;355 }356 if (n % 100 >= 11 && n % 100 <= 19) {357 return goog.i18n.pluralRules.Keyword.MANY;358 }359 return goog.i18n.pluralRules.Keyword.OTHER;360};361/**362 * Plural select rules for si locale363 *364 * @param {number} n The count of items.365 * @param {number=} opt_precision Precision for number formatting, if not default.366 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.367 * @private368 */369goog.i18n.pluralRules.siSelect_ = function(n, opt_precision) {370 var i = n | 0;371 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);372 if ((n == 0 || n == 1) || i == 0 && vf.f == 1) {373 return goog.i18n.pluralRules.Keyword.ONE;374 }375 return goog.i18n.pluralRules.Keyword.OTHER;376};377/**378 * Plural select rules for cy locale379 *380 * @param {number} n The count of items.381 * @param {number=} opt_precision Precision for number formatting, if not default.382 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.383 * @private384 */385goog.i18n.pluralRules.cySelect_ = function(n, opt_precision) {386 if (n == 0) {387 return goog.i18n.pluralRules.Keyword.ZERO;388 }389 if (n == 1) {390 return goog.i18n.pluralRules.Keyword.ONE;391 }392 if (n == 2) {393 return goog.i18n.pluralRules.Keyword.TWO;394 }395 if (n == 3) {396 return goog.i18n.pluralRules.Keyword.FEW;397 }398 if (n == 6) {399 return goog.i18n.pluralRules.Keyword.MANY;400 }401 return goog.i18n.pluralRules.Keyword.OTHER;402};403/**404 * Plural select rules for da locale405 *406 * @param {number} n The count of items.407 * @param {number=} opt_precision Precision for number formatting, if not default.408 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.409 * @private410 */411goog.i18n.pluralRules.daSelect_ = function(n, opt_precision) {412 var i = n | 0;413 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);414 var wt = goog.i18n.pluralRules.get_wt_(vf.v, vf.f);415 if (n == 1 || wt.t != 0 && (i == 0 || i == 1)) {416 return goog.i18n.pluralRules.Keyword.ONE;417 }418 return goog.i18n.pluralRules.Keyword.OTHER;419};420/**421 * Plural select rules for ru locale422 *423 * @param {number} n The count of items.424 * @param {number=} opt_precision Precision for number formatting, if not default.425 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.426 * @private427 */428goog.i18n.pluralRules.ruSelect_ = function(n, opt_precision) {429 var i = n | 0;430 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);431 if (vf.v == 0 && i % 10 == 1 && i % 100 != 11) {432 return goog.i18n.pluralRules.Keyword.ONE;433 }434 if (vf.v == 0 && i % 10 >= 2 && i % 10 <= 4 && (i % 100 < 12 || i % 100 > 14)) {435 return goog.i18n.pluralRules.Keyword.FEW;436 }437 if (vf.v == 0 && i % 10 == 0 || vf.v == 0 && i % 10 >= 5 && i % 10 <= 9 || vf.v == 0 && i % 100 >= 11 && i % 100 <= 14) {438 return goog.i18n.pluralRules.Keyword.MANY;439 }440 return goog.i18n.pluralRules.Keyword.OTHER;441};442/**443 * Plural select rules for gv locale444 *445 * @param {number} n The count of items.446 * @param {number=} opt_precision Precision for number formatting, if not default.447 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.448 * @private449 */450goog.i18n.pluralRules.gvSelect_ = function(n, opt_precision) {451 var i = n | 0;452 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);453 if (vf.v == 0 && i % 10 == 1) {454 return goog.i18n.pluralRules.Keyword.ONE;455 }456 if (vf.v == 0 && i % 10 == 2) {457 return goog.i18n.pluralRules.Keyword.TWO;458 }459 if (vf.v == 0 && (i % 100 == 0 || i % 100 == 20 || i % 100 == 40 || i % 100 == 60 || i % 100 == 80)) {460 return goog.i18n.pluralRules.Keyword.FEW;461 }462 if (vf.v != 0) {463 return goog.i18n.pluralRules.Keyword.MANY;464 }465 return goog.i18n.pluralRules.Keyword.OTHER;466};467/**468 * Plural select rules for be locale469 *470 * @param {number} n The count of items.471 * @param {number=} opt_precision Precision for number formatting, if not default.472 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.473 * @private474 */475goog.i18n.pluralRules.beSelect_ = function(n, opt_precision) {476 if (n % 10 == 1 && n % 100 != 11) {477 return goog.i18n.pluralRules.Keyword.ONE;478 }479 if (n % 10 >= 2 && n % 10 <= 4 && (n % 100 < 12 || n % 100 > 14)) {480 return goog.i18n.pluralRules.Keyword.FEW;481 }482 if (n % 10 == 0 || n % 10 >= 5 && n % 10 <= 9 || n % 100 >= 11 && n % 100 <= 14) {483 return goog.i18n.pluralRules.Keyword.MANY;484 }485 return goog.i18n.pluralRules.Keyword.OTHER;486};487/**488 * Plural select rules for mk locale489 *490 * @param {number} n The count of items.491 * @param {number=} opt_precision Precision for number formatting, if not default.492 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.493 * @private494 */495goog.i18n.pluralRules.mkSelect_ = function(n, opt_precision) {496 var i = n | 0;497 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);498 if (vf.v == 0 && i % 10 == 1 || vf.f % 10 == 1) {499 return goog.i18n.pluralRules.Keyword.ONE;500 }501 return goog.i18n.pluralRules.Keyword.OTHER;502};503/**504 * Plural select rules for ga locale505 *506 * @param {number} n The count of items.507 * @param {number=} opt_precision Precision for number formatting, if not default.508 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.509 * @private510 */511goog.i18n.pluralRules.gaSelect_ = function(n, opt_precision) {512 if (n == 1) {513 return goog.i18n.pluralRules.Keyword.ONE;514 }515 if (n == 2) {516 return goog.i18n.pluralRules.Keyword.TWO;517 }518 if (n >= 3 && n <= 6) {519 return goog.i18n.pluralRules.Keyword.FEW;520 }521 if (n >= 7 && n <= 10) {522 return goog.i18n.pluralRules.Keyword.MANY;523 }524 return goog.i18n.pluralRules.Keyword.OTHER;525};526/**527 * Plural select rules for pt locale528 *529 * @param {number} n The count of items.530 * @param {number=} opt_precision Precision for number formatting, if not default.531 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.532 * @private533 */534goog.i18n.pluralRules.ptSelect_ = function(n, opt_precision) {535 if (n >= 0 && n <= 2 && n != 2) {536 return goog.i18n.pluralRules.Keyword.ONE;537 }538 return goog.i18n.pluralRules.Keyword.OTHER;539};540/**541 * Plural select rules for es locale542 *543 * @param {number} n The count of items.544 * @param {number=} opt_precision Precision for number formatting, if not default.545 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.546 * @private547 */548goog.i18n.pluralRules.esSelect_ = function(n, opt_precision) {549 if (n == 1) {550 return goog.i18n.pluralRules.Keyword.ONE;551 }552 return goog.i18n.pluralRules.Keyword.OTHER;553};554/**555 * Plural select rules for dsb locale556 *557 * @param {number} n The count of items.558 * @param {number=} opt_precision Precision for number formatting, if not default.559 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.560 * @private561 */562goog.i18n.pluralRules.dsbSelect_ = function(n, opt_precision) {563 var i = n | 0;564 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);565 if (vf.v == 0 && i % 100 == 1 || vf.f % 100 == 1) {566 return goog.i18n.pluralRules.Keyword.ONE;567 }568 if (vf.v == 0 && i % 100 == 2 || vf.f % 100 == 2) {569 return goog.i18n.pluralRules.Keyword.TWO;570 }571 if (vf.v == 0 && i % 100 >= 3 && i % 100 <= 4 || vf.f % 100 >= 3 && vf.f % 100 <= 4) {572 return goog.i18n.pluralRules.Keyword.FEW;573 }574 return goog.i18n.pluralRules.Keyword.OTHER;575};576/**577 * Plural select rules for lag locale578 *579 * @param {number} n The count of items.580 * @param {number=} opt_precision Precision for number formatting, if not default.581 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.582 * @private583 */584goog.i18n.pluralRules.lagSelect_ = function(n, opt_precision) {585 var i = n | 0;586 if (n == 0) {587 return goog.i18n.pluralRules.Keyword.ZERO;588 }589 if ((i == 0 || i == 1) && n != 0) {590 return goog.i18n.pluralRules.Keyword.ONE;591 }592 return goog.i18n.pluralRules.Keyword.OTHER;593};594/**595 * Plural select rules for is locale596 *597 * @param {number} n The count of items.598 * @param {number=} opt_precision Precision for number formatting, if not default.599 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.600 * @private601 */602goog.i18n.pluralRules.isSelect_ = function(n, opt_precision) {603 var i = n | 0;604 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);605 var wt = goog.i18n.pluralRules.get_wt_(vf.v, vf.f);606 if (wt.t == 0 && i % 10 == 1 && i % 100 != 11 || wt.t != 0) {607 return goog.i18n.pluralRules.Keyword.ONE;608 }609 return goog.i18n.pluralRules.Keyword.OTHER;610};611/**612 * Plural select rules for ksh locale613 *614 * @param {number} n The count of items.615 * @param {number=} opt_precision Precision for number formatting, if not default.616 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.617 * @private618 */619goog.i18n.pluralRules.kshSelect_ = function(n, opt_precision) {620 if (n == 0) {621 return goog.i18n.pluralRules.Keyword.ZERO;622 }623 if (n == 1) {624 return goog.i18n.pluralRules.Keyword.ONE;625 }626 return goog.i18n.pluralRules.Keyword.OTHER;627};628/**629 * Plural select rules for ar locale630 *631 * @param {number} n The count of items.632 * @param {number=} opt_precision Precision for number formatting, if not default.633 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.634 * @private635 */636goog.i18n.pluralRules.arSelect_ = function(n, opt_precision) {637 if (n == 0) {638 return goog.i18n.pluralRules.Keyword.ZERO;639 }640 if (n == 1) {641 return goog.i18n.pluralRules.Keyword.ONE;642 }643 if (n == 2) {644 return goog.i18n.pluralRules.Keyword.TWO;645 }646 if (n % 100 >= 3 && n % 100 <= 10) {647 return goog.i18n.pluralRules.Keyword.FEW;648 }649 if (n % 100 >= 11 && n % 100 <= 99) {650 return goog.i18n.pluralRules.Keyword.MANY;651 }652 return goog.i18n.pluralRules.Keyword.OTHER;653};654/**655 * Plural select rules for gd locale656 *657 * @param {number} n The count of items.658 * @param {number=} opt_precision Precision for number formatting, if not default.659 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.660 * @private661 */662goog.i18n.pluralRules.gdSelect_ = function(n, opt_precision) {663 if (n == 1 || n == 11) {664 return goog.i18n.pluralRules.Keyword.ONE;665 }666 if (n == 2 || n == 12) {667 return goog.i18n.pluralRules.Keyword.TWO;668 }669 if (n >= 3 && n <= 10 || n >= 13 && n <= 19) {670 return goog.i18n.pluralRules.Keyword.FEW;671 }672 return goog.i18n.pluralRules.Keyword.OTHER;673};674/**675 * Plural select rules for sl locale676 *677 * @param {number} n The count of items.678 * @param {number=} opt_precision Precision for number formatting, if not default.679 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.680 * @private681 */682goog.i18n.pluralRules.slSelect_ = function(n, opt_precision) {683 var i = n | 0;684 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);685 if (vf.v == 0 && i % 100 == 1) {686 return goog.i18n.pluralRules.Keyword.ONE;687 }688 if (vf.v == 0 && i % 100 == 2) {689 return goog.i18n.pluralRules.Keyword.TWO;690 }691 if (vf.v == 0 && i % 100 >= 3 && i % 100 <= 4 || vf.v != 0) {692 return goog.i18n.pluralRules.Keyword.FEW;693 }694 return goog.i18n.pluralRules.Keyword.OTHER;695};696/**697 * Plural select rules for lt locale698 *699 * @param {number} n The count of items.700 * @param {number=} opt_precision Precision for number formatting, if not default.701 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.702 * @private703 */704goog.i18n.pluralRules.ltSelect_ = function(n, opt_precision) {705 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);706 if (n % 10 == 1 && (n % 100 < 11 || n % 100 > 19)) {707 return goog.i18n.pluralRules.Keyword.ONE;708 }709 if (n % 10 >= 2 && n % 10 <= 9 && (n % 100 < 11 || n % 100 > 19)) {710 return goog.i18n.pluralRules.Keyword.FEW;711 }712 if (vf.f != 0) {713 return goog.i18n.pluralRules.Keyword.MANY;714 }715 return goog.i18n.pluralRules.Keyword.OTHER;716};717/**718 * Plural select rules for tzm locale719 *720 * @param {number} n The count of items.721 * @param {number=} opt_precision Precision for number formatting, if not default.722 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.723 * @private724 */725goog.i18n.pluralRules.tzmSelect_ = function(n, opt_precision) {726 if (n >= 0 && n <= 1 || n >= 11 && n <= 99) {727 return goog.i18n.pluralRules.Keyword.ONE;728 }729 return goog.i18n.pluralRules.Keyword.OTHER;730};731/**732 * Plural select rules for en locale733 *734 * @param {number} n The count of items.735 * @param {number=} opt_precision Precision for number formatting, if not default.736 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.737 * @private738 */739goog.i18n.pluralRules.enSelect_ = function(n, opt_precision) {740 var i = n | 0;741 var vf = goog.i18n.pluralRules.get_vf_(n, opt_precision);742 if (i == 1 && vf.v == 0) {743 return goog.i18n.pluralRules.Keyword.ONE;744 }745 return goog.i18n.pluralRules.Keyword.OTHER;746};747/**748 * Plural select rules for ak locale749 *750 * @param {number} n The count of items.751 * @param {number=} opt_precision Precision for number formatting, if not default.752 * @return {goog.i18n.pluralRules.Keyword} Locale-specific plural value.753 * @private754 */755goog.i18n.pluralRules.akSelect_ = function(n, opt_precision) {756 if (n >= 0 && n <= 1) {757 return goog.i18n.pluralRules.Keyword.ONE;758 }759 return goog.i18n.pluralRules.Keyword.OTHER;760};761/**762 * Selected Plural rules by locale.763 */764goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;765if (goog.LOCALE == 'af') {766 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;767}768if (goog.LOCALE == 'am') {769 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;770}771if (goog.LOCALE == 'ar') {772 goog.i18n.pluralRules.select = goog.i18n.pluralRules.arSelect_;773}774if (goog.LOCALE == 'ar_DZ' || goog.LOCALE == 'ar-DZ') {775 goog.i18n.pluralRules.select = goog.i18n.pluralRules.arSelect_;776}777if (goog.LOCALE == 'az') {778 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;779}780if (goog.LOCALE == 'be') {781 goog.i18n.pluralRules.select = goog.i18n.pluralRules.beSelect_;782}783if (goog.LOCALE == 'bg') {784 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;785}786if (goog.LOCALE == 'bn') {787 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;788}789if (goog.LOCALE == 'br') {790 goog.i18n.pluralRules.select = goog.i18n.pluralRules.brSelect_;791}792if (goog.LOCALE == 'bs') {793 goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_;794}795if (goog.LOCALE == 'ca') {796 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;797}798if (goog.LOCALE == 'chr') {799 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;800}801if (goog.LOCALE == 'cs') {802 goog.i18n.pluralRules.select = goog.i18n.pluralRules.csSelect_;803}804if (goog.LOCALE == 'cy') {805 goog.i18n.pluralRules.select = goog.i18n.pluralRules.cySelect_;806}807if (goog.LOCALE == 'da') {808 goog.i18n.pluralRules.select = goog.i18n.pluralRules.daSelect_;809}810if (goog.LOCALE == 'de') {811 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;812}813if (goog.LOCALE == 'de_AT' || goog.LOCALE == 'de-AT') {814 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;815}816if (goog.LOCALE == 'de_CH' || goog.LOCALE == 'de-CH') {817 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;818}819if (goog.LOCALE == 'el') {820 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;821}822if (goog.LOCALE == 'en') {823 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;824}825if (goog.LOCALE == 'en_AU' || goog.LOCALE == 'en-AU') {826 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;827}828if (goog.LOCALE == 'en_CA' || goog.LOCALE == 'en-CA') {829 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;830}831if (goog.LOCALE == 'en_GB' || goog.LOCALE == 'en-GB') {832 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;833}834if (goog.LOCALE == 'en_IE' || goog.LOCALE == 'en-IE') {835 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;836}837if (goog.LOCALE == 'en_IN' || goog.LOCALE == 'en-IN') {838 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;839}840if (goog.LOCALE == 'en_SG' || goog.LOCALE == 'en-SG') {841 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;842}843if (goog.LOCALE == 'en_US' || goog.LOCALE == 'en-US') {844 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;845}846if (goog.LOCALE == 'en_ZA' || goog.LOCALE == 'en-ZA') {847 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;848}849if (goog.LOCALE == 'es') {850 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;851}852if (goog.LOCALE == 'es_419' || goog.LOCALE == 'es-419') {853 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;854}855if (goog.LOCALE == 'es_ES' || goog.LOCALE == 'es-ES') {856 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;857}858if (goog.LOCALE == 'es_MX' || goog.LOCALE == 'es-MX') {859 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;860}861if (goog.LOCALE == 'es_US' || goog.LOCALE == 'es-US') {862 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;863}864if (goog.LOCALE == 'et') {865 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;866}867if (goog.LOCALE == 'eu') {868 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;869}870if (goog.LOCALE == 'fa') {871 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;872}873if (goog.LOCALE == 'fi') {874 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;875}876if (goog.LOCALE == 'fil') {877 goog.i18n.pluralRules.select = goog.i18n.pluralRules.filSelect_;878}879if (goog.LOCALE == 'fr') {880 goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_;881}882if (goog.LOCALE == 'fr_CA' || goog.LOCALE == 'fr-CA') {883 goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_;884}885if (goog.LOCALE == 'ga') {886 goog.i18n.pluralRules.select = goog.i18n.pluralRules.gaSelect_;887}888if (goog.LOCALE == 'gl') {889 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;890}891if (goog.LOCALE == 'gsw') {892 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;893}894if (goog.LOCALE == 'gu') {895 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;896}897if (goog.LOCALE == 'haw') {898 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;899}900if (goog.LOCALE == 'he') {901 goog.i18n.pluralRules.select = goog.i18n.pluralRules.heSelect_;902}903if (goog.LOCALE == 'hi') {904 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;905}906if (goog.LOCALE == 'hr') {907 goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_;908}909if (goog.LOCALE == 'hu') {910 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;911}912if (goog.LOCALE == 'hy') {913 goog.i18n.pluralRules.select = goog.i18n.pluralRules.frSelect_;914}915if (goog.LOCALE == 'id') {916 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;917}918if (goog.LOCALE == 'in') {919 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;920}921if (goog.LOCALE == 'is') {922 goog.i18n.pluralRules.select = goog.i18n.pluralRules.isSelect_;923}924if (goog.LOCALE == 'it') {925 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;926}927if (goog.LOCALE == 'iw') {928 goog.i18n.pluralRules.select = goog.i18n.pluralRules.heSelect_;929}930if (goog.LOCALE == 'ja') {931 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;932}933if (goog.LOCALE == 'ka') {934 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;935}936if (goog.LOCALE == 'kk') {937 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;938}939if (goog.LOCALE == 'km') {940 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;941}942if (goog.LOCALE == 'kn') {943 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;944}945if (goog.LOCALE == 'ko') {946 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;947}948if (goog.LOCALE == 'ky') {949 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;950}951if (goog.LOCALE == 'ln') {952 goog.i18n.pluralRules.select = goog.i18n.pluralRules.akSelect_;953}954if (goog.LOCALE == 'lo') {955 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;956}957if (goog.LOCALE == 'lt') {958 goog.i18n.pluralRules.select = goog.i18n.pluralRules.ltSelect_;959}960if (goog.LOCALE == 'lv') {961 goog.i18n.pluralRules.select = goog.i18n.pluralRules.lvSelect_;962}963if (goog.LOCALE == 'mk') {964 goog.i18n.pluralRules.select = goog.i18n.pluralRules.mkSelect_;965}966if (goog.LOCALE == 'ml') {967 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;968}969if (goog.LOCALE == 'mn') {970 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;971}972if (goog.LOCALE == 'mo') {973 goog.i18n.pluralRules.select = goog.i18n.pluralRules.roSelect_;974}975if (goog.LOCALE == 'mr') {976 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;977}978if (goog.LOCALE == 'ms') {979 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;980}981if (goog.LOCALE == 'mt') {982 goog.i18n.pluralRules.select = goog.i18n.pluralRules.mtSelect_;983}984if (goog.LOCALE == 'my') {985 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;986}987if (goog.LOCALE == 'nb') {988 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;989}990if (goog.LOCALE == 'ne') {991 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;992}993if (goog.LOCALE == 'nl') {994 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;995}996if (goog.LOCALE == 'no') {997 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;998}999if (goog.LOCALE == 'no_NO' || goog.LOCALE == 'no-NO') {1000 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1001}1002if (goog.LOCALE == 'or') {1003 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1004}1005if (goog.LOCALE == 'pa') {1006 goog.i18n.pluralRules.select = goog.i18n.pluralRules.akSelect_;1007}1008if (goog.LOCALE == 'pl') {1009 goog.i18n.pluralRules.select = goog.i18n.pluralRules.plSelect_;1010}1011if (goog.LOCALE == 'pt') {1012 goog.i18n.pluralRules.select = goog.i18n.pluralRules.ptSelect_;1013}1014if (goog.LOCALE == 'pt_BR' || goog.LOCALE == 'pt-BR') {1015 goog.i18n.pluralRules.select = goog.i18n.pluralRules.ptSelect_;1016}1017if (goog.LOCALE == 'pt_PT' || goog.LOCALE == 'pt-PT') {1018 goog.i18n.pluralRules.select = goog.i18n.pluralRules.pt_PTSelect_;1019}1020if (goog.LOCALE == 'ro') {1021 goog.i18n.pluralRules.select = goog.i18n.pluralRules.roSelect_;1022}1023if (goog.LOCALE == 'ru') {1024 goog.i18n.pluralRules.select = goog.i18n.pluralRules.ruSelect_;1025}1026if (goog.LOCALE == 'sh') {1027 goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_;1028}1029if (goog.LOCALE == 'si') {1030 goog.i18n.pluralRules.select = goog.i18n.pluralRules.siSelect_;1031}1032if (goog.LOCALE == 'sk') {1033 goog.i18n.pluralRules.select = goog.i18n.pluralRules.csSelect_;1034}1035if (goog.LOCALE == 'sl') {1036 goog.i18n.pluralRules.select = goog.i18n.pluralRules.slSelect_;1037}1038if (goog.LOCALE == 'sq') {1039 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1040}1041if (goog.LOCALE == 'sr') {1042 goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_;1043}1044if (goog.LOCALE == 'sr_Latn' || goog.LOCALE == 'sr-Latn') {1045 goog.i18n.pluralRules.select = goog.i18n.pluralRules.srSelect_;1046}1047if (goog.LOCALE == 'sv') {1048 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;1049}1050if (goog.LOCALE == 'sw') {1051 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;1052}1053if (goog.LOCALE == 'ta') {1054 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1055}1056if (goog.LOCALE == 'te') {1057 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1058}1059if (goog.LOCALE == 'th') {1060 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1061}1062if (goog.LOCALE == 'tl') {1063 goog.i18n.pluralRules.select = goog.i18n.pluralRules.filSelect_;1064}1065if (goog.LOCALE == 'tr') {1066 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1067}1068if (goog.LOCALE == 'uk') {1069 goog.i18n.pluralRules.select = goog.i18n.pluralRules.ruSelect_;1070}1071if (goog.LOCALE == 'ur') {1072 goog.i18n.pluralRules.select = goog.i18n.pluralRules.enSelect_;1073}1074if (goog.LOCALE == 'uz') {1075 goog.i18n.pluralRules.select = goog.i18n.pluralRules.esSelect_;1076}1077if (goog.LOCALE == 'vi') {1078 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1079}1080if (goog.LOCALE == 'zh') {1081 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1082}1083if (goog.LOCALE == 'zh_CN' || goog.LOCALE == 'zh-CN') {1084 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1085}1086if (goog.LOCALE == 'zh_HK' || goog.LOCALE == 'zh-HK') {1087 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1088}1089if (goog.LOCALE == 'zh_TW' || goog.LOCALE == 'zh-TW') {1090 goog.i18n.pluralRules.select = goog.i18n.pluralRules.defaultSelect_;1091}1092if (goog.LOCALE == 'zu') {1093 goog.i18n.pluralRules.select = goog.i18n.pluralRules.hiSelect_;...
Using AI Code Generation
1var plural = require('stryker-parent').plural;2console.log(plural('cat'));3var plural = require('stryker-parent').plural;4console.log(plural('cat'));5var plural = require('stryker-parent').plural;6console.log(plural('cat'));7var plural = require('stryker-parent').plural;8console.log(plural('cat'));9var plural = require('stryker-parent').plural;10console.log(plural('cat'));11var plural = require('stryker-parent').plural;12console.log(plural('cat'));13var plural = require('stryker-parent').plural;14console.log(plural('cat'));15var plural = require('stryker-parent').plural;16console.log(plural('cat'));17var plural = require('stryker-parent').plural;18console.log(plural('cat'));19var plural = require('stryker-parent').plural;20console.log(plural('cat'));21var plural = require('stryker-parent').plural;22console.log(plural('cat'));23var plural = require('stryker-parent').plural;24console.log(plural('cat'));25var plural = require('stryker-parent').plural;26console.log(plural('cat'));27var plural = require('stryker-parent').plural;28console.log(plural('cat'));
Using AI Code Generation
1var strykerParent = require('stryker-parent');2console.log(strykerParent.plural('cat', 2));3var strykerParent = require('stryker-parent');4console.log(strykerParent.plural('cat', 2));5var strykerParent = require('stryker-parent');6console.log(strykerParent.plural('cat', 2));7var strykerParent = require('stryker-parent');8console.log(strykerParent.plural('cat', 2));9var strykerParent = require('stryker-parent');10console.log(strykerParent.plural('cat', 2));11var strykerParent = require('stryker-parent');12console.log(strykerParent.plural('cat', 2));13var strykerParent = require('stryker-parent');14console.log(strykerParent.plural('cat', 2));15var strykerParent = require('stryker-parent');16console.log(strykerParent.plural('cat', 2));17var strykerParent = require('stryker-parent');18console.log(strykerParent.plural('cat', 2));19var strykerParent = require('stryker-parent');20console.log(strykerParent.plural('cat', 2));21var strykerParent = require('stryker-parent');22console.log(strykerParent.plural('cat', 2));23var strykerParent = require('stryker-parent');24console.log(str
Using AI Code Generation
1var plural = require('stryker-parent').plural;2var plural = require('stryker-parent').plural;3var plural = require('stryker-parent').plural;4var plural = require('stryker-parent').plural;5var plural = require('stryker-parent').plural;6var plural = require('stryker-parent').plural;7var plural = require('stryker-parent').plural;8var plural = require('stryker-parent').plural;9var plural = require('stryker-parent').plural;10var plural = require('stryker-parent').plural;11var plural = require('stryker-parent').plural;12var plural = require('stryker-parent').plural;13var plural = require('stryker-parent').plural;14var plural = require('stryker-parent').plural;
Using AI Code Generation
1const strykerParent = require('stryker-parent');2console.log(strykerParent.plural('child', 5));3console.log(strykerParent.plural('child', 1));4const strykerChild = require('stryker-child');5console.log(strykerChild.plural('child', 5));6console.log(strykerChild.plural('child', 1));7const strykerGrandChild = require('stryker-grand-child');8console.log(strykerGrandChild.plural('child', 5));9console.log(strykerGrandChild.plural('child', 1));10const strykerGreatGrandChild = require('stryker-great-grand-child');11console.log(strykerGreatGrandChild.plural('child', 5));12console.log(strykerGreatGrandChild.plural('child', 1));13const strykerGreatGreatGrandChild = require('stryker-great-great-grand-child');14console.log(strykerGreatGreatGrandChild.plural('child', 5));15console.log(strykerGreatGreatGrandChild.plural('child', 1));16const strykerGreatGreatGreatGrandChild = require('stryker-great-great-great-grand-child');17console.log(strykerGreatGreatGreatGrandChild.plural('child', 5));18console.log(strykerGreatGreatGreatGrandChild.plural('child', 1));19const strykerGreatGreatGreatGreatGrandChild = require('stryker-great-great-great-great-grand-child');20console.log(strykerGreatGreatGreatGreatGrandChild.plural('child', 5));21console.log(strykerGreatGreatGreatGreatGrandChild.plural('child', 1));
Using AI Code Generation
1var plural = require('stryker-parent').plural;2console.log(plural('cat', 2));3var plural = require('stryker-parent').plural;4console.log(plural('cat', 2));5var plural = require('stryker-parent').plural;6console.log(plural('cat', 2));7var plural = require('stryker-parent').plural;8console.log(plural('cat', 2));9var plural = require('stryker-parent').plural;10console.log(plural('cat', 2));11var plural = require('stryker-parent').plural;12console.log(plural('cat', 2));13var plural = require('stryker-parent').plural;14console.log(plural('cat', 2));15var plural = require('stryker-parent').plural;16console.log(plural('cat', 2));17var plural = require('stryker-parent').plural;18console.log(plural('cat', 2));19var plural = require('stryker-parent').plural;20console.log(plural('cat', 2));21var plural = require('stryker-parent').plural;22console.log(plural('cat', 2));23var plural = require('stryker-parent').plural;24console.log(plural
Using AI Code Generation
1var pluralize = require('stryker-parent').pluralize;2console.log(pluralize('cat', 2));3var pluralize = require('stryker-parent').pluralize;4console.log(pluralize('cat', 1));5module.exports = function (config) {6 config.set({7 });8};
Using AI Code Generation
1var stryker = require('stryker-parent');2var plural = stryker.plural;3module.exports = function() {4 return plural('cat', 3);5};6var test = require('./test');7describe('test', function() {8 it('should return plural', function() {9 expect(test()).toBe('cats');10 });11});
Using AI Code Generation
1const strykerParent = require('stryker-parent');2const plural = strykerParent.plural;3console.log(plural('1 child', '2 children', 2));4const strykerParent = require('stryker-parent');5const plural = strykerParent.plural;6console.log(plural('1 child', '2 children', 2));7const strykerParent = require('stryker-parent');8const plural = strykerParent.plural;9console.log(plural('1 child', '2 children', 2));10const strykerParent = require('stryker-parent');11const plural = strykerParent.plural;12console.log(plural('1 child', '2 children', 2));13const strykerParent = require('stryker-parent');14const plural = strykerParent.plural;15console.log(plural('1 child', '2 children', 2));16const strykerParent = require('stryker-parent');17const plural = strykerParent.plural;18console.log(plural('1 child', '2 children', 2));19const strykerParent = require('stryker-parent');20const plural = strykerParent.plural;21console.log(plural('1 child', '2 children', 2));22const strykerParent = require('stryker-parent');23const plural = strykerParent.plural;24console.log(plural('1 child', '2 children', 2));25const strykerParent = require('stryker-parent
Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.
You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.
Get 100 minutes of automation test minutes FREE!!