intl-messageformat 1.0.4 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (252) hide show
  1. package/README.md +44 -18
  2. package/dist/intl-messageformat-with-locales.js +1247 -320
  3. package/dist/intl-messageformat-with-locales.js.map +1 -1
  4. package/dist/intl-messageformat-with-locales.min.js +3 -2
  5. package/dist/intl-messageformat-with-locales.min.js.map +1 -1
  6. package/dist/intl-messageformat.js +265 -160
  7. package/dist/intl-messageformat.js.map +1 -1
  8. package/dist/intl-messageformat.min.js +1 -1
  9. package/dist/intl-messageformat.min.js.map +1 -1
  10. package/dist/locale-data/aa.js +4 -0
  11. package/dist/locale-data/af.js +3 -1
  12. package/dist/locale-data/agq.js +2 -0
  13. package/dist/locale-data/ak.js +2 -1
  14. package/dist/locale-data/am.js +2 -1
  15. package/dist/locale-data/ar.js +29 -1
  16. package/dist/locale-data/as.js +2 -1
  17. package/dist/locale-data/asa.js +2 -1
  18. package/dist/locale-data/ast.js +2 -1
  19. package/dist/locale-data/az.js +5 -1
  20. package/dist/locale-data/bas.js +2 -0
  21. package/dist/locale-data/be.js +2 -1
  22. package/dist/locale-data/bem.js +2 -1
  23. package/dist/locale-data/bez.js +2 -1
  24. package/dist/locale-data/bg.js +2 -1
  25. package/dist/locale-data/bh.js +1 -0
  26. package/dist/locale-data/bm.js +4 -1
  27. package/dist/locale-data/bn.js +3 -1
  28. package/dist/locale-data/bo.js +3 -1
  29. package/dist/locale-data/br.js +2 -1
  30. package/dist/locale-data/brx.js +2 -1
  31. package/dist/locale-data/bs.js +5 -1
  32. package/dist/locale-data/ca.js +6 -1
  33. package/dist/locale-data/cgg.js +2 -1
  34. package/dist/locale-data/chr.js +2 -1
  35. package/dist/locale-data/ckb.js +1 -0
  36. package/dist/locale-data/cs.js +2 -1
  37. package/dist/locale-data/cy.js +2 -1
  38. package/dist/locale-data/da.js +3 -1
  39. package/dist/locale-data/dav.js +2 -0
  40. package/dist/locale-data/de.js +7 -1
  41. package/dist/locale-data/dje.js +2 -0
  42. package/dist/locale-data/dsb.js +2 -0
  43. package/dist/locale-data/dua.js +2 -0
  44. package/dist/locale-data/dv.js +1 -0
  45. package/dist/locale-data/dyo.js +2 -0
  46. package/dist/locale-data/dz.js +2 -1
  47. package/dist/locale-data/ebu.js +2 -0
  48. package/dist/locale-data/ee.js +3 -1
  49. package/dist/locale-data/el.js +3 -1
  50. package/dist/locale-data/en.js +96 -1
  51. package/dist/locale-data/eo.js +2 -1
  52. package/dist/locale-data/es.js +27 -1
  53. package/dist/locale-data/et.js +2 -1
  54. package/dist/locale-data/eu.js +2 -1
  55. package/dist/locale-data/ewo.js +2 -0
  56. package/dist/locale-data/fa.js +3 -1
  57. package/dist/locale-data/ff.js +5 -1
  58. package/dist/locale-data/fi.js +2 -1
  59. package/dist/locale-data/fil.js +2 -1
  60. package/dist/locale-data/fo.js +2 -1
  61. package/dist/locale-data/fr.js +47 -1
  62. package/dist/locale-data/fur.js +2 -1
  63. package/dist/locale-data/fy.js +2 -1
  64. package/dist/locale-data/ga.js +2 -1
  65. package/dist/locale-data/gd.js +2 -1
  66. package/dist/locale-data/gl.js +2 -1
  67. package/dist/locale-data/gsw.js +4 -1
  68. package/dist/locale-data/gu.js +2 -1
  69. package/dist/locale-data/guw.js +1 -0
  70. package/dist/locale-data/guz.js +2 -0
  71. package/dist/locale-data/gv.js +2 -1
  72. package/dist/locale-data/ha.js +6 -1
  73. package/dist/locale-data/haw.js +2 -1
  74. package/dist/locale-data/he.js +2 -1
  75. package/dist/locale-data/hi.js +2 -1
  76. package/dist/locale-data/hr.js +3 -1
  77. package/dist/locale-data/hsb.js +2 -0
  78. package/dist/locale-data/hu.js +2 -1
  79. package/dist/locale-data/hy.js +2 -1
  80. package/dist/locale-data/ia.js +2 -0
  81. package/dist/locale-data/id.js +2 -1
  82. package/dist/locale-data/ig.js +2 -1
  83. package/dist/locale-data/ii.js +2 -1
  84. package/dist/locale-data/in.js +1 -0
  85. package/dist/locale-data/is.js +2 -1
  86. package/dist/locale-data/it.js +4 -1
  87. package/dist/locale-data/iu.js +1 -0
  88. package/dist/locale-data/iw.js +1 -0
  89. package/dist/locale-data/ja.js +2 -1
  90. package/dist/locale-data/jbo.js +1 -0
  91. package/dist/locale-data/jgo.js +2 -1
  92. package/dist/locale-data/ji.js +1 -0
  93. package/dist/locale-data/jmc.js +2 -1
  94. package/dist/locale-data/jv.js +1 -0
  95. package/dist/locale-data/jw.js +1 -0
  96. package/dist/locale-data/ka.js +2 -1
  97. package/dist/locale-data/kab.js +2 -1
  98. package/dist/locale-data/kaj.js +1 -0
  99. package/dist/locale-data/kam.js +2 -0
  100. package/dist/locale-data/kcg.js +1 -0
  101. package/dist/locale-data/kde.js +2 -1
  102. package/dist/locale-data/kea.js +2 -1
  103. package/dist/locale-data/khq.js +2 -0
  104. package/dist/locale-data/ki.js +2 -0
  105. package/dist/locale-data/kk.js +3 -1
  106. package/dist/locale-data/kkj.js +2 -1
  107. package/dist/locale-data/kl.js +2 -1
  108. package/dist/locale-data/kln.js +2 -0
  109. package/dist/locale-data/km.js +2 -1
  110. package/dist/locale-data/kn.js +2 -1
  111. package/dist/locale-data/ko.js +3 -1
  112. package/dist/locale-data/kok.js +2 -0
  113. package/dist/locale-data/ks.js +3 -1
  114. package/dist/locale-data/ksb.js +2 -1
  115. package/dist/locale-data/ksf.js +2 -0
  116. package/dist/locale-data/ksh.js +2 -1
  117. package/dist/locale-data/ku.js +1 -0
  118. package/dist/locale-data/kw.js +2 -1
  119. package/dist/locale-data/ky.js +3 -1
  120. package/dist/locale-data/lag.js +2 -1
  121. package/dist/locale-data/lb.js +2 -0
  122. package/dist/locale-data/lg.js +2 -1
  123. package/dist/locale-data/lkt.js +2 -1
  124. package/dist/locale-data/ln.js +5 -1
  125. package/dist/locale-data/lo.js +2 -1
  126. package/dist/locale-data/lt.js +2 -1
  127. package/dist/locale-data/lu.js +2 -0
  128. package/dist/locale-data/luo.js +2 -0
  129. package/dist/locale-data/luy.js +2 -0
  130. package/dist/locale-data/lv.js +2 -1
  131. package/dist/locale-data/mas.js +3 -1
  132. package/dist/locale-data/mer.js +2 -0
  133. package/dist/locale-data/mfe.js +2 -0
  134. package/dist/locale-data/mg.js +2 -1
  135. package/dist/locale-data/mgh.js +2 -0
  136. package/dist/locale-data/mgo.js +2 -1
  137. package/dist/locale-data/mk.js +2 -1
  138. package/dist/locale-data/ml.js +2 -1
  139. package/dist/locale-data/mn.js +4 -1
  140. package/dist/locale-data/mo.js +1 -0
  141. package/dist/locale-data/mr.js +2 -1
  142. package/dist/locale-data/ms.js +6 -1
  143. package/dist/locale-data/mt.js +2 -1
  144. package/dist/locale-data/mua.js +2 -0
  145. package/dist/locale-data/my.js +2 -1
  146. package/dist/locale-data/nah.js +1 -0
  147. package/dist/locale-data/naq.js +2 -1
  148. package/dist/locale-data/nb.js +3 -1
  149. package/dist/locale-data/nd.js +2 -1
  150. package/dist/locale-data/ne.js +3 -1
  151. package/dist/locale-data/nl.js +8 -1
  152. package/dist/locale-data/nmg.js +2 -0
  153. package/dist/locale-data/nn.js +2 -1
  154. package/dist/locale-data/nnh.js +2 -1
  155. package/dist/locale-data/no.js +1 -0
  156. package/dist/locale-data/nqo.js +1 -0
  157. package/dist/locale-data/nr.js +2 -1
  158. package/dist/locale-data/nso.js +2 -1
  159. package/dist/locale-data/nus.js +2 -0
  160. package/dist/locale-data/ny.js +1 -0
  161. package/dist/locale-data/nyn.js +2 -1
  162. package/dist/locale-data/om.js +3 -1
  163. package/dist/locale-data/or.js +2 -1
  164. package/dist/locale-data/os.js +3 -1
  165. package/dist/locale-data/pa.js +5 -1
  166. package/dist/locale-data/pap.js +1 -0
  167. package/dist/locale-data/pl.js +2 -1
  168. package/dist/locale-data/prg.js +1 -0
  169. package/dist/locale-data/ps.js +2 -1
  170. package/dist/locale-data/pt.js +10 -1
  171. package/dist/locale-data/qu.js +4 -0
  172. package/dist/locale-data/rm.js +2 -1
  173. package/dist/locale-data/rn.js +2 -0
  174. package/dist/locale-data/ro.js +3 -1
  175. package/dist/locale-data/rof.js +2 -1
  176. package/dist/locale-data/ru.js +7 -1
  177. package/dist/locale-data/rw.js +2 -0
  178. package/dist/locale-data/rwk.js +2 -1
  179. package/dist/locale-data/sah.js +2 -1
  180. package/dist/locale-data/saq.js +2 -1
  181. package/dist/locale-data/sbp.js +2 -0
  182. package/dist/locale-data/se.js +4 -1
  183. package/dist/locale-data/seh.js +2 -1
  184. package/dist/locale-data/ses.js +2 -1
  185. package/dist/locale-data/sg.js +2 -1
  186. package/dist/locale-data/sh.js +1 -0
  187. package/dist/locale-data/shi.js +5 -1
  188. package/dist/locale-data/si.js +2 -1
  189. package/dist/locale-data/sk.js +2 -1
  190. package/dist/locale-data/sl.js +2 -1
  191. package/dist/locale-data/sma.js +1 -0
  192. package/dist/locale-data/smi.js +1 -0
  193. package/dist/locale-data/smj.js +1 -0
  194. package/dist/locale-data/smn.js +2 -0
  195. package/dist/locale-data/sms.js +1 -0
  196. package/dist/locale-data/sn.js +2 -1
  197. package/dist/locale-data/so.js +5 -1
  198. package/dist/locale-data/sq.js +4 -1
  199. package/dist/locale-data/sr.js +11 -1
  200. package/dist/locale-data/ss.js +3 -1
  201. package/dist/locale-data/ssy.js +2 -1
  202. package/dist/locale-data/st.js +1 -1
  203. package/dist/locale-data/sv.js +4 -1
  204. package/dist/locale-data/sw.js +4 -1
  205. package/dist/locale-data/swc.js +2 -0
  206. package/dist/locale-data/syr.js +1 -0
  207. package/dist/locale-data/ta.js +5 -1
  208. package/dist/locale-data/te.js +2 -1
  209. package/dist/locale-data/teo.js +3 -1
  210. package/dist/locale-data/th.js +2 -1
  211. package/dist/locale-data/ti.js +3 -1
  212. package/dist/locale-data/tig.js +1 -1
  213. package/dist/locale-data/tk.js +1 -0
  214. package/dist/locale-data/tl.js +1 -0
  215. package/dist/locale-data/tn.js +3 -1
  216. package/dist/locale-data/to.js +2 -1
  217. package/dist/locale-data/tr.js +3 -1
  218. package/dist/locale-data/ts.js +2 -1
  219. package/dist/locale-data/twq.js +2 -0
  220. package/dist/locale-data/tzm.js +3 -1
  221. package/dist/locale-data/ug.js +3 -1
  222. package/dist/locale-data/uk.js +2 -1
  223. package/dist/locale-data/ur.js +3 -1
  224. package/dist/locale-data/uz.js +7 -1
  225. package/dist/locale-data/vai.js +5 -0
  226. package/dist/locale-data/ve.js +2 -1
  227. package/dist/locale-data/vi.js +2 -1
  228. package/dist/locale-data/vo.js +2 -1
  229. package/dist/locale-data/vun.js +2 -1
  230. package/dist/locale-data/wa.js +1 -0
  231. package/dist/locale-data/wae.js +2 -1
  232. package/dist/locale-data/wo.js +1 -0
  233. package/dist/locale-data/xh.js +1 -1
  234. package/dist/locale-data/xog.js +2 -1
  235. package/dist/locale-data/yav.js +2 -0
  236. package/dist/locale-data/yi.js +2 -0
  237. package/dist/locale-data/yo.js +3 -1
  238. package/dist/locale-data/zgh.js +2 -0
  239. package/dist/locale-data/zh.js +10 -1
  240. package/dist/locale-data/zu.js +2 -1
  241. package/lib/compiler.js +21 -10
  242. package/lib/core.js +52 -33
  243. package/lib/en.js +2 -1
  244. package/lib/es5.js +8 -0
  245. package/lib/locales.js +751 -160
  246. package/lib/main.js +2 -0
  247. package/lib/utils.js +8 -0
  248. package/package.json +6 -6
  249. package/src/compiler.js +13 -10
  250. package/src/core.js +44 -33
  251. package/src/en.js +1 -1
  252. package/bower.json +0 -40
@@ -1 +1,7 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ru","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(v===0&&i%10===1&&(i%100!==11))return"one";if(v===0&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))return"few";if(v===0&&(i%10===0||v===0&&(i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||v===0&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14)))return"many";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ru","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],v0=!s[1],i10=i.slice(-1),i100=i.slice(-2);if(ord)return"other";return v0&&i10==1&&i100!=11?"one":v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)?"few":v0&&i10==0||v0&&(i10>=5&&i10<=9)||v0&&(i100>=11&&i100<=14)?"many":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ru-BY","parentLocale":"ru"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ru-KG","parentLocale":"ru"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"ru-KZ","parentLocale":"ru"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"ru-MD","parentLocale":"ru"});
6
+ IntlMessageFormat.__addLocaleData({"locale":"ru-RU","parentLocale":"ru"});
7
+ IntlMessageFormat.__addLocaleData({"locale":"ru-UA","parentLocale":"ru"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"rw","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"rw-RW","parentLocale":"rw"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"rwk","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"rwk","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"rwk-TZ","parentLocale":"rwk"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sah","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sah","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sah-RU","parentLocale":"sah"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"saq","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"saq","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"saq-KE","parentLocale":"saq"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"sbp","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sbp-TZ","parentLocale":"sbp"});
@@ -1 +1,4 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"se","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";if(n===2)return"two";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"se","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"se-FI","parentLocale":"se"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"se-NO","parentLocale":"se"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"se-SE","parentLocale":"se"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"seh","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"seh","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"seh-MZ","parentLocale":"seh"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ses","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ses","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ses-ML","parentLocale":"ses"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sg","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sg","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sg-CF","parentLocale":"sg"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"sh","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],f=s[1]||"",v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return"other";return v0&&i10==1&&i100!=11||f10==1&&f100!=11?"one":v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||f10>=2&&f10<=4&&(f100<12||f100>14)?"few":"other"}});
@@ -1 +1,5 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"shi","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n));n=Math.floor(n);if(i===0||n===1)return"one";if(n===Math.floor(n)&&n>=2&&n<=10)return"few";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"shi","pluralRuleFunction":function (n,ord){var s=String(n).split("."),t0=Number(s[0])==n;if(ord)return"other";return n>=0&&n<=1?"one":t0&&n>=2&&n<=10?"few":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"shi-Latn","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
3
+ IntlMessageFormat.__addLocaleData({"locale":"shi-Latn-MA","parentLocale":"shi-Latn"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"shi-Tfng","parentLocale":"shi"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"shi-Tfng-MA","parentLocale":"shi-Tfng"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"si","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),f=parseInt(n.toString().replace(/^[^.]*\.?/,""),10);n=Math.floor(n);if(n===0||n===1||i===0&&f===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"si","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],f=s[1]||"";if(ord)return"other";return n==0||n==1||i==0&&f==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"si-LK","parentLocale":"si"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sk","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";if(i===Math.floor(i)&&i>=2&&i<=4&&v===0)return"few";if((v!==0))return"many";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sk","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],v0=!s[1];if(ord)return"other";return n==1&&v0?"one":i>=2&&i<=4&&v0?"few":!v0?"many":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sk-SK","parentLocale":"sk"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sl","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(v===0&&i%100===1)return"one";if(v===0&&i%100===2)return"two";if(v===0&&(i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||(v!==0)))return"few";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sl","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],v0=!s[1],i100=i.slice(-2);if(ord)return"other";return v0&&i100==1?"one":v0&&i100==2?"two":v0&&(i100==3||i100==4)||!v0?"few":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sl-SI","parentLocale":"sl"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"sma","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"smi","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"smj","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"smn","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"smn-FI","parentLocale":"smn"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"sms","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":n==2?"two":"other"}});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sn","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sn","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sn-ZW","parentLocale":"sn"});
@@ -1 +1,5 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"so","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"so","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"so-DJ","parentLocale":"so"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"so-ET","parentLocale":"so"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"so-KE","parentLocale":"so"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"so-SO","parentLocale":"so"});
@@ -1 +1,4 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sq","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sq","pluralRuleFunction":function (n,ord){var s=String(n).split("."),t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return n==1?"one":n10==4&&n100!=14?"many":"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sq-AL","parentLocale":"sq"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"sq-MK","parentLocale":"sq"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"sq-XK","parentLocale":"sq"});
@@ -1 +1,11 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sr","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length,f=parseInt(n.toString().replace(/^[^.]*\.?/,""),10);n=Math.floor(n);if(v===0&&i%10===1&&((i%100!==11)||f%10===1&&(f%100!==11)))return"one";if(v===0&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&(!(i%100>=12&&i%100<=14)||f%10===Math.floor(f%10)&&f%10>=2&&f%10<=4&&!(f%100>=12&&f%100<=14)))return"few";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sr","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],f=s[1]||"",v0=!s[1],i10=i.slice(-1),i100=i.slice(-2),f10=f.slice(-1),f100=f.slice(-2);if(ord)return"other";return v0&&i10==1&&i100!=11||f10==1&&f100!=11?"one":v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)||f10>=2&&f10<=4&&(f100<12||f100>14)?"few":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Cyrl","parentLocale":"sr"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Cyrl-BA","parentLocale":"sr-Cyrl"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Cyrl-ME","parentLocale":"sr-Cyrl"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Cyrl-RS","parentLocale":"sr-Cyrl"});
6
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Cyrl-XK","parentLocale":"sr-Cyrl"});
7
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Latn","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
8
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Latn-BA","parentLocale":"sr-Latn"});
9
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Latn-ME","parentLocale":"sr-Latn"});
10
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Latn-RS","parentLocale":"sr-Latn"});
11
+ IntlMessageFormat.__addLocaleData({"locale":"sr-Latn-XK","parentLocale":"sr-Latn"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ss","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ss","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ss-SZ","parentLocale":"ss"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ss-ZA","parentLocale":"ss"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ssy","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ssy","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ssy-ER","parentLocale":"ssy"});
@@ -1 +1 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"st","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"st","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
@@ -1 +1,4 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sv","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sv","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2);if(ord)return(n10==1||n10==2)&&n100!=11&&n100!=12?"one":"other";return n==1&&v0?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sv-AX","parentLocale":"sv"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"sv-FI","parentLocale":"sv"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"sv-SE","parentLocale":"sv"});
@@ -1 +1,4 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"sw","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"sw","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"sw-KE","parentLocale":"sw"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"sw-TZ","parentLocale":"sw"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"sw-UG","parentLocale":"sw"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"swc","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"swc-CD","parentLocale":"swc"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"syr","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
@@ -1 +1,5 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ta","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ta","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ta-IN","parentLocale":"ta"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ta-LK","parentLocale":"ta"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"ta-MY","parentLocale":"ta"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"ta-SG","parentLocale":"ta"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"te","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"te","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"te-IN","parentLocale":"te"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"teo","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"teo","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"teo-KE","parentLocale":"teo"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"teo-UG","parentLocale":"teo"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"th","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"th","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"th-TH","parentLocale":"th"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ti","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===Math.floor(n)&&n>=0&&n<=1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ti","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==0||n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ti-ER","parentLocale":"ti"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ti-ET","parentLocale":"ti"});
@@ -1 +1 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"tig","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"tig","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"tk","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"tl","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],f=s[1]||"",v0=!s[1],i10=i.slice(-1),f10=f.slice(-1);if(ord)return n==1?"one":"other";return v0&&(i==1||i==2||i==3)||v0&&i10!=4&&i10!=6&&i10!=9||!v0&&f10!=4&&f10!=6&&f10!=9?"one":"other"}});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"tn","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"tn","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"tn-BW","parentLocale":"tn"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"tn-ZA","parentLocale":"tn"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"to","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"to","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"to-TO","parentLocale":"to"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"tr","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"tr","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"tr-CY","parentLocale":"tr"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"tr-TR","parentLocale":"tr"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ts","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ts","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ts-ZA","parentLocale":"ts"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"twq","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"twq-NE","parentLocale":"twq"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"tzm","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"tzm","pluralRuleFunction":function (n,ord){var s=String(n).split("."),t0=Number(s[0])==n;if(ord)return"other";return n==0||n==1||t0&&n>=11&&n<=99?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"tzm-Latn","parentLocale":"tzm"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"tzm-Latn-MA","parentLocale":"tzm-Latn"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ug","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ug","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ug-Arab","parentLocale":"ug"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ug-Arab-CN","parentLocale":"ug-Arab"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"uk","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(v===0&&i%10===1&&(i%100!==11))return"one";if(v===0&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14))return"few";if(v===0&&(i%10===0||v===0&&(i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||v===0&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14)))return"many";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"uk","pluralRuleFunction":function (n,ord){var s=String(n).split("."),i=s[0],v0=!s[1],t0=Number(s[0])==n,n10=t0&&s[0].slice(-1),n100=t0&&s[0].slice(-2),i10=i.slice(-1),i100=i.slice(-2);if(ord)return n10==3&&n100!=13?"few":"other";return v0&&i10==1&&i100!=11?"one":v0&&(i10>=2&&i10<=4)&&(i100<12||i100>14)?"few":v0&&i10==0||v0&&(i10>=5&&i10<=9)||v0&&(i100>=11&&i100<=14)?"many":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"uk-UA","parentLocale":"uk"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ur","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n)),v=n.toString().replace(/^[^.]*\.?/,"").length;n=Math.floor(n);if(i===1&&v===0)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ur","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ur-IN","parentLocale":"ur"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"ur-PK","parentLocale":"ur"});
@@ -1 +1,7 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"uz","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"uz","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Arab","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
3
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Arab-AF","parentLocale":"uz-Arab"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Cyrl","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
5
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Cyrl-UZ","parentLocale":"uz-Cyrl"});
6
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Latn","parentLocale":"uz"});
7
+ IntlMessageFormat.__addLocaleData({"locale":"uz-Latn-UZ","parentLocale":"uz-Latn"});
@@ -0,0 +1,5 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"vai","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"vai-Latn","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
3
+ IntlMessageFormat.__addLocaleData({"locale":"vai-Latn-LR","parentLocale":"vai-Latn"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"vai-Vaii","parentLocale":"vai"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"vai-Vaii-LR","parentLocale":"vai-Vaii"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"ve","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"ve","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"ve-ZA","parentLocale":"ve"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"vi","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"vi","pluralRuleFunction":function (n,ord){if(ord)return n==1?"one":"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"vi-VN","parentLocale":"vi"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"vo","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"vo","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"vo-001","parentLocale":"vo"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"vun","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"vun","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"vun-TZ","parentLocale":"vun"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"wa","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==0||n==1?"one":"other"}});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"wae","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"wae","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"wae-CH","parentLocale":"wae"});
@@ -0,0 +1 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"wo","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
@@ -1 +1 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"xh","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"xh","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"xog","pluralRuleFunction":function (n) {n=Math.floor(n);if(n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"xog","pluralRuleFunction":function (n,ord){if(ord)return"other";return n==1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"xog-UG","parentLocale":"xog"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"yav","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"yav-CM","parentLocale":"yav"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"yi","pluralRuleFunction":function (n,ord){var s=String(n).split("."),v0=!s[1];if(ord)return"other";return n==1&&v0?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"yi-001","parentLocale":"yi"});
@@ -1 +1,3 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"yo","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"yo","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"yo-BJ","parentLocale":"yo"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"yo-NG","parentLocale":"yo"});
@@ -0,0 +1,2 @@
1
+ IntlMessageFormat.__addLocaleData({"locale":"zgh","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"zgh-MA","parentLocale":"zgh"});
@@ -1 +1,10 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"zh","pluralRuleFunction":function (n) {return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"zh","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hans","parentLocale":"zh"});
3
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hans-CN","parentLocale":"zh-Hans"});
4
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hans-HK","parentLocale":"zh-Hans"});
5
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hans-MO","parentLocale":"zh-Hans"});
6
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hans-SG","parentLocale":"zh-Hans"});
7
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hant","pluralRuleFunction":function (n,ord){if(ord)return"other";return"other"}});
8
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hant-HK","parentLocale":"zh-Hant"});
9
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hant-MO","parentLocale":"zh-Hant-HK"});
10
+ IntlMessageFormat.__addLocaleData({"locale":"zh-Hant-TW","parentLocale":"zh-Hant"});
@@ -1 +1,2 @@
1
- IntlMessageFormat.__addLocaleData({"locale":"zu","pluralRuleFunction":function (n) {var i=Math.floor(Math.abs(n));n=Math.floor(n);if(i===0||n===1)return"one";return"other";}});
1
+ IntlMessageFormat.__addLocaleData({"locale":"zu","pluralRuleFunction":function (n,ord){if(ord)return"other";return n>=0&&n<=1?"one":"other"}});
2
+ IntlMessageFormat.__addLocaleData({"locale":"zu-ZA","parentLocale":"zu"});
package/lib/compiler.js CHANGED
@@ -1,3 +1,11 @@
1
+ /*
2
+ Copyright (c) 2014, Yahoo! Inc. All rights reserved.
3
+ Copyrights licensed under the New BSD License.
4
+ See the accompanying LICENSE file for terms.
5
+ */
6
+
7
+ /* jslint esnext: true */
8
+
1
9
  "use strict";
2
10
  exports["default"] = Compiler;
3
11
 
@@ -103,7 +111,9 @@ Compiler.prototype.compileArgument = function (element) {
103
111
 
104
112
  case 'pluralFormat':
105
113
  options = this.compileOptions(element);
106
- return new PluralFormat(element.id, format.offset, options, pluralFn);
114
+ return new PluralFormat(
115
+ element.id, format.ordinal, format.offset, options, pluralFn
116
+ );
107
117
 
108
118
  case 'selectFormat':
109
119
  options = this.compileOptions(element);
@@ -120,8 +130,8 @@ Compiler.prototype.compileOptions = function (element) {
120
130
  optionsHash = {};
121
131
 
122
132
  // Save the current plural element, if any, then set it to a new value when
123
- // compiling the options sub-patterns. This conform's the spec's algorithm
124
- // for handling `"#"` synax in message text.
133
+ // compiling the options sub-patterns. This conforms the spec's algorithm
134
+ // for handling `"#"` syntax in message text.
125
135
  this.pluralStack.push(this.currentPlural);
126
136
  this.currentPlural = format.type === 'pluralFormat' ? element : null;
127
137
 
@@ -134,7 +144,7 @@ Compiler.prototype.compileOptions = function (element) {
134
144
  optionsHash[option.selector] = this.compileMessage(option.value);
135
145
  }
136
146
 
137
- // Pop the plural stack to put back the original currnet plural value.
147
+ // Pop the plural stack to put back the original current plural value.
138
148
  this.currentPlural = this.pluralStack.pop();
139
149
 
140
150
  return optionsHash;
@@ -154,18 +164,19 @@ StringFormat.prototype.format = function (value) {
154
164
  return typeof value === 'string' ? value : String(value);
155
165
  };
156
166
 
157
- function PluralFormat(id, offset, options, pluralFn) {
158
- this.id = id;
159
- this.offset = offset;
160
- this.options = options;
161
- this.pluralFn = pluralFn;
167
+ function PluralFormat(id, useOrdinal, offset, options, pluralFn) {
168
+ this.id = id;
169
+ this.useOrdinal = useOrdinal;
170
+ this.offset = offset;
171
+ this.options = options;
172
+ this.pluralFn = pluralFn;
162
173
  }
163
174
 
164
175
  PluralFormat.prototype.getOption = function (value) {
165
176
  var options = this.options;
166
177
 
167
178
  var option = options['=' + value] ||
168
- options[this.pluralFn(value - this.offset)];
179
+ options[this.pluralFn(value - this.offset, this.useOrdinal)];
169
180
 
170
181
  return option || options.other;
171
182
  };