|
| 1 | +module.exports = { |
| 2 | + dependencies: function() { |
| 3 | + var Globalize = require( "../../../dist/node-main.js" ); |
| 4 | + |
| 5 | + Globalize.load( |
| 6 | + // core |
| 7 | + require( "../../../external/cldr-data/supplemental/likelySubtags.json" ), |
| 8 | + // plural |
| 9 | + require( "../../../external/cldr-data/supplemental/plurals.json" ), |
| 10 | + require( "../../../external/cldr-data/supplemental/ordinals.json" ) |
| 11 | + ); |
| 12 | + |
| 13 | + return Globalize; |
| 14 | + }, |
| 15 | + cases: function( Globalize ) { |
| 16 | + Globalize.locale( "en" ); |
| 17 | + return [ |
| 18 | + { formatter: Globalize.pluralGenerator(), args: [ 0 ] }, |
| 19 | + { formatter: Globalize.pluralGenerator(), args: [ 0.14 ] }, |
| 20 | + |
| 21 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 0 ] }, |
| 22 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 1 ] }, |
| 23 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 2 ] }, |
| 24 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 1412 ] }, |
| 25 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 0.14 ] }, |
| 26 | + { formatter: Globalize( "en" ).pluralGenerator(), args: [ 3.14 ] }, |
| 27 | + |
| 28 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 0 ] }, |
| 29 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 1 ] }, |
| 30 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 2 ] }, |
| 31 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 3 ] }, |
| 32 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 1412 ] }, |
| 33 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 0.14 ] }, |
| 34 | + { formatter: Globalize( "en" ).pluralGenerator( { type: "ordinal" } ), args: [ 3.14 ] }, |
| 35 | + |
| 36 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 0 ] }, |
| 37 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 1 ] }, |
| 38 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 2 ] }, |
| 39 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 3 ] }, |
| 40 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 6 ] }, |
| 41 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 9 ] }, |
| 42 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 10 ] }, |
| 43 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 11 ] }, |
| 44 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 15 ] }, |
| 45 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 21 ] }, |
| 46 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 70 ] }, |
| 47 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 99 ] }, |
| 48 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 100 ] }, |
| 49 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 101 ] }, |
| 50 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 102 ] }, |
| 51 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 103 ] }, |
| 52 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 111 ] }, |
| 53 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 199 ] }, |
| 54 | + { formatter: Globalize( "ar" ).pluralGenerator(), args: [ 3.14 ] }, |
| 55 | + |
| 56 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 0 ] }, |
| 57 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 1 ] }, |
| 58 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 2 ] }, |
| 59 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 3 ] }, |
| 60 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 9 ] }, |
| 61 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 10 ] }, |
| 62 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 11 ] }, |
| 63 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 99 ] }, |
| 64 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 100 ] }, |
| 65 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 101 ] }, |
| 66 | + { formatter: Globalize( "ar" ).pluralGenerator( { type: "ordinal" } ), args: [ 3.14 ] }, |
| 67 | + |
| 68 | + |
| 69 | + { formatter: Globalize( "ja" ).pluralGenerator(), args: [ 0 ] }, |
| 70 | + { formatter: Globalize( "ja" ).pluralGenerator(), args: [ 1 ] }, |
| 71 | + { formatter: Globalize( "ja" ).pluralGenerator(), args: [ 2 ] }, |
| 72 | + { formatter: Globalize( "ja" ).pluralGenerator(), args: [ 3.14 ] }, |
| 73 | + |
| 74 | + { formatter: Globalize( "pt" ).pluralGenerator(), args: [ 0 ] }, |
| 75 | + { formatter: Globalize( "pt" ).pluralGenerator(), args: [ 1 ] }, |
| 76 | + { formatter: Globalize( "pt" ).pluralGenerator(), args: [ 2 ] }, |
| 77 | + { formatter: Globalize( "pt" ).pluralGenerator(), args: [ 0.1 ] }, |
| 78 | + { formatter: Globalize( "pt" ).pluralGenerator(), args: [ 3.14 ] }, |
| 79 | + |
| 80 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 0 ] }, |
| 81 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 1 ] }, |
| 82 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 2 ] }, |
| 83 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 3 ] }, |
| 84 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 4 ] }, |
| 85 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 5 ] }, |
| 86 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 6 ] }, |
| 87 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 9 ] }, |
| 88 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 11 ] }, |
| 89 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 12 ] }, |
| 90 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 19 ] }, |
| 91 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 21 ] }, |
| 92 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 22 ] }, |
| 93 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 29 ] }, |
| 94 | + { formatter: Globalize( "ru" ).pluralGenerator(), args: [ 3.14 ] }, |
| 95 | + |
| 96 | + { formatter: Globalize( "zh" ).pluralGenerator(), args: [ 0 ] }, |
| 97 | + { formatter: Globalize( "zh" ).pluralGenerator(), args: [ 1 ] }, |
| 98 | + { formatter: Globalize( "zh" ).pluralGenerator(), args: [ 2 ] }, |
| 99 | + { formatter: Globalize( "zh" ).pluralGenerator(), args: [ 3.14 ] } |
| 100 | + ]; |
| 101 | + } |
| 102 | +}; |
0 commit comments