From c1e52b1d2e772b27e6b329f40bd03c4877195ce6 Mon Sep 17 00:00:00 2001 From: Victor Costa Date: Mon, 28 Mar 2016 09:06:56 -0300 Subject: [PATCH] Add locale files for messageformat --- dist/locale/messageformat/locale/af.js | 1 + dist/locale/messageformat/locale/am.js | 1 + dist/locale/messageformat/locale/ar.js | 18 ++++++++++++++++++ dist/locale/messageformat/locale/bg.js | 1 + dist/locale/messageformat/locale/bn.js | 1 + dist/locale/messageformat/locale/br.js | 18 ++++++++++++++++++ dist/locale/messageformat/locale/ca.js | 1 + dist/locale/messageformat/locale/cs.js | 9 +++++++++ dist/locale/messageformat/locale/cy.js | 18 ++++++++++++++++++ dist/locale/messageformat/locale/da.js | 1 + dist/locale/messageformat/locale/de.js | 1 + dist/locale/messageformat/locale/el.js | 1 + dist/locale/messageformat/locale/en.js | 1 + dist/locale/messageformat/locale/es.js | 1 + dist/locale/messageformat/locale/et.js | 1 + dist/locale/messageformat/locale/eu.js | 1 + dist/locale/messageformat/locale/fa.js | 1 + dist/locale/messageformat/locale/fi.js | 1 + dist/locale/messageformat/locale/fil.js | 1 + dist/locale/messageformat/locale/fr.js | 1 + dist/locale/messageformat/locale/ga.js | 1 + dist/locale/messageformat/locale/gl.js | 1 + dist/locale/messageformat/locale/gsw.js | 1 + dist/locale/messageformat/locale/gu.js | 1 + dist/locale/messageformat/locale/he.js | 1 + dist/locale/messageformat/locale/hi.js | 1 + dist/locale/messageformat/locale/hr.js | 14 ++++++++++++++ dist/locale/messageformat/locale/hu.js | 1 + dist/locale/messageformat/locale/id.js | 1 + dist/locale/messageformat/locale/in.js | 1 + dist/locale/messageformat/locale/is.js | 1 + dist/locale/messageformat/locale/it.js | 1 + dist/locale/messageformat/locale/iw.js | 1 + dist/locale/messageformat/locale/ja.js | 1 + dist/locale/messageformat/locale/kn.js | 1 + dist/locale/messageformat/locale/ko.js | 1 + dist/locale/messageformat/locale/lag.js | 9 +++++++++ dist/locale/messageformat/locale/ln.js | 1 + dist/locale/messageformat/locale/lt.js | 10 ++++++++++ dist/locale/messageformat/locale/lv.js | 9 +++++++++ dist/locale/messageformat/locale/mk.js | 1 + dist/locale/messageformat/locale/ml.js | 1 + dist/locale/messageformat/locale/mo.js | 10 ++++++++++ dist/locale/messageformat/locale/mr.js | 1 + dist/locale/messageformat/locale/ms.js | 1 + dist/locale/messageformat/locale/mt.js | 12 ++++++++++++ dist/locale/messageformat/locale/nl.js | 1 + dist/locale/messageformat/locale/no.js | 1 + dist/locale/messageformat/locale/or.js | 1 + dist/locale/messageformat/locale/pl.js | 15 +++++++++++++++ dist/locale/messageformat/locale/pt.js | 1 + dist/locale/messageformat/locale/ro.js | 10 ++++++++++ dist/locale/messageformat/locale/ru.js | 14 ++++++++++++++ dist/locale/messageformat/locale/shi.js | 9 +++++++++ dist/locale/messageformat/locale/sk.js | 9 +++++++++ dist/locale/messageformat/locale/sl.js | 12 ++++++++++++ dist/locale/messageformat/locale/sq.js | 1 + dist/locale/messageformat/locale/sr.js | 14 ++++++++++++++ dist/locale/messageformat/locale/sv.js | 1 + dist/locale/messageformat/locale/sw.js | 1 + dist/locale/messageformat/locale/ta.js | 1 + dist/locale/messageformat/locale/te.js | 1 + dist/locale/messageformat/locale/th.js | 1 + dist/locale/messageformat/locale/tl.js | 1 + dist/locale/messageformat/locale/tr.js | 1 + dist/locale/messageformat/locale/uk.js | 14 ++++++++++++++ dist/locale/messageformat/locale/ur.js | 1 + dist/locale/messageformat/locale/vi.js | 1 + dist/locale/messageformat/locale/zh.js | 1 + 69 files changed, 275 insertions(+), 0 deletions(-) create mode 100644 dist/locale/messageformat/locale/af.js create mode 100644 dist/locale/messageformat/locale/am.js create mode 100644 dist/locale/messageformat/locale/ar.js create mode 100644 dist/locale/messageformat/locale/bg.js create mode 100644 dist/locale/messageformat/locale/bn.js create mode 100644 dist/locale/messageformat/locale/br.js create mode 100644 dist/locale/messageformat/locale/ca.js create mode 100644 dist/locale/messageformat/locale/cs.js create mode 100644 dist/locale/messageformat/locale/cy.js create mode 100644 dist/locale/messageformat/locale/da.js create mode 100644 dist/locale/messageformat/locale/de.js create mode 100644 dist/locale/messageformat/locale/el.js create mode 100644 dist/locale/messageformat/locale/en.js create mode 100644 dist/locale/messageformat/locale/es.js create mode 100644 dist/locale/messageformat/locale/et.js create mode 100644 dist/locale/messageformat/locale/eu.js create mode 100644 dist/locale/messageformat/locale/fa.js create mode 100644 dist/locale/messageformat/locale/fi.js create mode 100644 dist/locale/messageformat/locale/fil.js create mode 100644 dist/locale/messageformat/locale/fr.js create mode 100644 dist/locale/messageformat/locale/ga.js create mode 100644 dist/locale/messageformat/locale/gl.js create mode 100644 dist/locale/messageformat/locale/gsw.js create mode 100644 dist/locale/messageformat/locale/gu.js create mode 100644 dist/locale/messageformat/locale/he.js create mode 100644 dist/locale/messageformat/locale/hi.js create mode 100644 dist/locale/messageformat/locale/hr.js create mode 100644 dist/locale/messageformat/locale/hu.js create mode 100644 dist/locale/messageformat/locale/id.js create mode 100644 dist/locale/messageformat/locale/in.js create mode 100644 dist/locale/messageformat/locale/is.js create mode 100644 dist/locale/messageformat/locale/it.js create mode 100644 dist/locale/messageformat/locale/iw.js create mode 100644 dist/locale/messageformat/locale/ja.js create mode 100644 dist/locale/messageformat/locale/kn.js create mode 100644 dist/locale/messageformat/locale/ko.js create mode 100644 dist/locale/messageformat/locale/lag.js create mode 100644 dist/locale/messageformat/locale/ln.js create mode 100644 dist/locale/messageformat/locale/lt.js create mode 100644 dist/locale/messageformat/locale/lv.js create mode 100644 dist/locale/messageformat/locale/mk.js create mode 100644 dist/locale/messageformat/locale/ml.js create mode 100644 dist/locale/messageformat/locale/mo.js create mode 100644 dist/locale/messageformat/locale/mr.js create mode 100644 dist/locale/messageformat/locale/ms.js create mode 100644 dist/locale/messageformat/locale/mt.js create mode 100644 dist/locale/messageformat/locale/nl.js create mode 100644 dist/locale/messageformat/locale/no.js create mode 100644 dist/locale/messageformat/locale/or.js create mode 100644 dist/locale/messageformat/locale/pl.js create mode 100644 dist/locale/messageformat/locale/pt.js create mode 100644 dist/locale/messageformat/locale/ro.js create mode 100644 dist/locale/messageformat/locale/ru.js create mode 100644 dist/locale/messageformat/locale/shi.js create mode 100644 dist/locale/messageformat/locale/sk.js create mode 100644 dist/locale/messageformat/locale/sl.js create mode 100644 dist/locale/messageformat/locale/sq.js create mode 100644 dist/locale/messageformat/locale/sr.js create mode 100644 dist/locale/messageformat/locale/sv.js create mode 100644 dist/locale/messageformat/locale/sw.js create mode 100644 dist/locale/messageformat/locale/ta.js create mode 100644 dist/locale/messageformat/locale/te.js create mode 100644 dist/locale/messageformat/locale/th.js create mode 100644 dist/locale/messageformat/locale/tl.js create mode 100644 dist/locale/messageformat/locale/tr.js create mode 100644 dist/locale/messageformat/locale/uk.js create mode 100644 dist/locale/messageformat/locale/ur.js create mode 100644 dist/locale/messageformat/locale/vi.js create mode 100644 dist/locale/messageformat/locale/zh.js diff --git a/dist/locale/messageformat/locale/af.js b/dist/locale/messageformat/locale/af.js new file mode 100644 index 0000000..08d01a3 --- /dev/null +++ b/dist/locale/messageformat/locale/af.js @@ -0,0 +1 @@ +MessageFormat.locale.af=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/am.js b/dist/locale/messageformat/locale/am.js new file mode 100644 index 0000000..62f1a88 --- /dev/null +++ b/dist/locale/messageformat/locale/am.js @@ -0,0 +1 @@ +MessageFormat.locale.am=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ar.js b/dist/locale/messageformat/locale/ar.js new file mode 100644 index 0000000..d33d95d --- /dev/null +++ b/dist/locale/messageformat/locale/ar.js @@ -0,0 +1,18 @@ +MessageFormat.locale.ar = function(n) { + if (n === 0) { + return 'zero'; + } + if (n == 1) { + return 'one'; + } + if (n == 2) { + return 'two'; + } + if ((n % 100) >= 3 && (n % 100) <= 10 && n == Math.floor(n)) { + return 'few'; + } + if ((n % 100) >= 11 && (n % 100) <= 99 && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/bg.js b/dist/locale/messageformat/locale/bg.js new file mode 100644 index 0000000..d0f35d0 --- /dev/null +++ b/dist/locale/messageformat/locale/bg.js @@ -0,0 +1 @@ +MessageFormat.locale.bg=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/bn.js b/dist/locale/messageformat/locale/bn.js new file mode 100644 index 0000000..c66dc0c --- /dev/null +++ b/dist/locale/messageformat/locale/bn.js @@ -0,0 +1 @@ +MessageFormat.locale.bn=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/br.js b/dist/locale/messageformat/locale/br.js new file mode 100644 index 0000000..2e0d43f --- /dev/null +++ b/dist/locale/messageformat/locale/br.js @@ -0,0 +1,18 @@ +MessageFormat.locale.br = function (n) { + if (n === 0) { + return 'zero'; + } + if (n == 1) { + return 'one'; + } + if (n == 2) { + return 'two'; + } + if (n == 3) { + return 'few'; + } + if (n == 6) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/ca.js b/dist/locale/messageformat/locale/ca.js new file mode 100644 index 0000000..d9ae5a4 --- /dev/null +++ b/dist/locale/messageformat/locale/ca.js @@ -0,0 +1 @@ +MessageFormat.locale.ca=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/cs.js b/dist/locale/messageformat/locale/cs.js new file mode 100644 index 0000000..6a7f67e --- /dev/null +++ b/dist/locale/messageformat/locale/cs.js @@ -0,0 +1,9 @@ +MessageFormat.locale.cs = function (n) { + if (n == 1) { + return 'one'; + } + if (n == 2 || n == 3 || n == 4) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/cy.js b/dist/locale/messageformat/locale/cy.js new file mode 100644 index 0000000..d98b1f4 --- /dev/null +++ b/dist/locale/messageformat/locale/cy.js @@ -0,0 +1,18 @@ +MessageFormat.locale.cy = function (n) { + if (n === 0) { + return 'zero'; + } + if (n == 1) { + return 'one'; + } + if (n == 2) { + return 'two'; + } + if (n == 3) { + return 'few'; + } + if (n == 6) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/da.js b/dist/locale/messageformat/locale/da.js new file mode 100644 index 0000000..82dce57 --- /dev/null +++ b/dist/locale/messageformat/locale/da.js @@ -0,0 +1 @@ +MessageFormat.locale.da=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/de.js b/dist/locale/messageformat/locale/de.js new file mode 100644 index 0000000..d7c2ffc --- /dev/null +++ b/dist/locale/messageformat/locale/de.js @@ -0,0 +1 @@ +MessageFormat.locale.de=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/el.js b/dist/locale/messageformat/locale/el.js new file mode 100644 index 0000000..b1ca364 --- /dev/null +++ b/dist/locale/messageformat/locale/el.js @@ -0,0 +1 @@ +MessageFormat.locale.el=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/en.js b/dist/locale/messageformat/locale/en.js new file mode 100644 index 0000000..0693041 --- /dev/null +++ b/dist/locale/messageformat/locale/en.js @@ -0,0 +1 @@ +MessageFormat.locale.en=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/es.js b/dist/locale/messageformat/locale/es.js new file mode 100644 index 0000000..a428f92 --- /dev/null +++ b/dist/locale/messageformat/locale/es.js @@ -0,0 +1 @@ +MessageFormat.locale.es=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/et.js b/dist/locale/messageformat/locale/et.js new file mode 100644 index 0000000..7ed5b78 --- /dev/null +++ b/dist/locale/messageformat/locale/et.js @@ -0,0 +1 @@ +MessageFormat.locale.et=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/eu.js b/dist/locale/messageformat/locale/eu.js new file mode 100644 index 0000000..154b5ce --- /dev/null +++ b/dist/locale/messageformat/locale/eu.js @@ -0,0 +1 @@ +MessageFormat.locale.eu=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/fa.js b/dist/locale/messageformat/locale/fa.js new file mode 100644 index 0000000..d8a314e --- /dev/null +++ b/dist/locale/messageformat/locale/fa.js @@ -0,0 +1 @@ +MessageFormat.locale.fa=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/fi.js b/dist/locale/messageformat/locale/fi.js new file mode 100644 index 0000000..04ec043 --- /dev/null +++ b/dist/locale/messageformat/locale/fi.js @@ -0,0 +1 @@ +MessageFormat.locale.fi=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/fil.js b/dist/locale/messageformat/locale/fil.js new file mode 100644 index 0000000..6ce1a75 --- /dev/null +++ b/dist/locale/messageformat/locale/fil.js @@ -0,0 +1 @@ +MessageFormat.locale.fil=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/fr.js b/dist/locale/messageformat/locale/fr.js new file mode 100644 index 0000000..106f53e --- /dev/null +++ b/dist/locale/messageformat/locale/fr.js @@ -0,0 +1 @@ +MessageFormat.locale.fr=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ga.js b/dist/locale/messageformat/locale/ga.js new file mode 100644 index 0000000..851eaa6 --- /dev/null +++ b/dist/locale/messageformat/locale/ga.js @@ -0,0 +1 @@ +MessageFormat.locale.ga=function(n){return n==1?"one":(n==2?"two":"other")} diff --git a/dist/locale/messageformat/locale/gl.js b/dist/locale/messageformat/locale/gl.js new file mode 100644 index 0000000..de38d10 --- /dev/null +++ b/dist/locale/messageformat/locale/gl.js @@ -0,0 +1 @@ +MessageFormat.locale.gl=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/gsw.js b/dist/locale/messageformat/locale/gsw.js new file mode 100644 index 0000000..0f73c83 --- /dev/null +++ b/dist/locale/messageformat/locale/gsw.js @@ -0,0 +1 @@ +MessageFormat.locale.gsw=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/gu.js b/dist/locale/messageformat/locale/gu.js new file mode 100644 index 0000000..c3c5dbf --- /dev/null +++ b/dist/locale/messageformat/locale/gu.js @@ -0,0 +1 @@ +MessageFormat.locale.gu=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/he.js b/dist/locale/messageformat/locale/he.js new file mode 100644 index 0000000..215e6df --- /dev/null +++ b/dist/locale/messageformat/locale/he.js @@ -0,0 +1 @@ +MessageFormat.locale.he=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/hi.js b/dist/locale/messageformat/locale/hi.js new file mode 100644 index 0000000..7fa2540 --- /dev/null +++ b/dist/locale/messageformat/locale/hi.js @@ -0,0 +1 @@ +MessageFormat.locale.hi=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/hr.js b/dist/locale/messageformat/locale/hr.js new file mode 100644 index 0000000..668e28e --- /dev/null +++ b/dist/locale/messageformat/locale/hr.js @@ -0,0 +1,14 @@ +MessageFormat.locale.hr = function (n) { + if ((n % 10) == 1 && (n % 100) != 11) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 4 && + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { + return 'few'; + } + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/hu.js b/dist/locale/messageformat/locale/hu.js new file mode 100644 index 0000000..a223b23 --- /dev/null +++ b/dist/locale/messageformat/locale/hu.js @@ -0,0 +1 @@ +MessageFormat.locale.hu=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/id.js b/dist/locale/messageformat/locale/id.js new file mode 100644 index 0000000..f9d1f08 --- /dev/null +++ b/dist/locale/messageformat/locale/id.js @@ -0,0 +1 @@ +MessageFormat.locale.id=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/in.js b/dist/locale/messageformat/locale/in.js new file mode 100644 index 0000000..5a38c0c --- /dev/null +++ b/dist/locale/messageformat/locale/in.js @@ -0,0 +1 @@ +MessageFormat.locale["in"]=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/is.js b/dist/locale/messageformat/locale/is.js new file mode 100644 index 0000000..a8ee0f0 --- /dev/null +++ b/dist/locale/messageformat/locale/is.js @@ -0,0 +1 @@ +MessageFormat.locale.is=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/it.js b/dist/locale/messageformat/locale/it.js new file mode 100644 index 0000000..7c0ab88 --- /dev/null +++ b/dist/locale/messageformat/locale/it.js @@ -0,0 +1 @@ +MessageFormat.locale.it=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/iw.js b/dist/locale/messageformat/locale/iw.js new file mode 100644 index 0000000..9ad06bf --- /dev/null +++ b/dist/locale/messageformat/locale/iw.js @@ -0,0 +1 @@ +MessageFormat.locale.iw=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ja.js b/dist/locale/messageformat/locale/ja.js new file mode 100644 index 0000000..b12ec88 --- /dev/null +++ b/dist/locale/messageformat/locale/ja.js @@ -0,0 +1 @@ +MessageFormat.locale.ja=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/kn.js b/dist/locale/messageformat/locale/kn.js new file mode 100644 index 0000000..eef7627 --- /dev/null +++ b/dist/locale/messageformat/locale/kn.js @@ -0,0 +1 @@ +MessageFormat.locale.kn=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/ko.js b/dist/locale/messageformat/locale/ko.js new file mode 100644 index 0000000..bf45d50 --- /dev/null +++ b/dist/locale/messageformat/locale/ko.js @@ -0,0 +1 @@ +MessageFormat.locale.ko=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/lag.js b/dist/locale/messageformat/locale/lag.js new file mode 100644 index 0000000..d4990b9 --- /dev/null +++ b/dist/locale/messageformat/locale/lag.js @@ -0,0 +1,9 @@ +MessageFormat.locale.lag = function (n) { + if (n === 0) { + return 'zero'; + } + if (n > 0 && n < 2) { + return 'one'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/ln.js b/dist/locale/messageformat/locale/ln.js new file mode 100644 index 0000000..a00be95 --- /dev/null +++ b/dist/locale/messageformat/locale/ln.js @@ -0,0 +1 @@ +MessageFormat.locale.ln=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/lt.js b/dist/locale/messageformat/locale/lt.js new file mode 100644 index 0000000..82878cf --- /dev/null +++ b/dist/locale/messageformat/locale/lt.js @@ -0,0 +1,10 @@ +MessageFormat.locale.lt = function (n) { + if ((n % 10) == 1 && ((n % 100) < 11 || (n % 100) > 19)) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 9 && + ((n % 100) < 11 || (n % 100) > 19) && n == Math.floor(n)) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/lv.js b/dist/locale/messageformat/locale/lv.js new file mode 100644 index 0000000..75beb34 --- /dev/null +++ b/dist/locale/messageformat/locale/lv.js @@ -0,0 +1,9 @@ +MessageFormat.locale.lv = function (n) { + if (n === 0) { + return 'zero'; + } + if ((n % 10) == 1 && (n % 100) != 11) { + return 'one'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/mk.js b/dist/locale/messageformat/locale/mk.js new file mode 100644 index 0000000..b8729e4 --- /dev/null +++ b/dist/locale/messageformat/locale/mk.js @@ -0,0 +1 @@ +MessageFormat.locale.mk=function(n){return (n%10)==1&&n!=11?"one":"other"} diff --git a/dist/locale/messageformat/locale/ml.js b/dist/locale/messageformat/locale/ml.js new file mode 100644 index 0000000..0c4b4ca --- /dev/null +++ b/dist/locale/messageformat/locale/ml.js @@ -0,0 +1 @@ +MessageFormat.locale.ml=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/mo.js b/dist/locale/messageformat/locale/mo.js new file mode 100644 index 0000000..16d84d9 --- /dev/null +++ b/dist/locale/messageformat/locale/mo.js @@ -0,0 +1,10 @@ +MessageFormat.locale.mo = function (n) { + if (n == 1) { + return 'one'; + } + if (n === 0 || n != 1 && (n % 100) >= 1 && + (n % 100) <= 19 && n == Math.floor(n)) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/mr.js b/dist/locale/messageformat/locale/mr.js new file mode 100644 index 0000000..b34c048 --- /dev/null +++ b/dist/locale/messageformat/locale/mr.js @@ -0,0 +1 @@ +MessageFormat.locale.mr=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ms.js b/dist/locale/messageformat/locale/ms.js new file mode 100644 index 0000000..84f2885 --- /dev/null +++ b/dist/locale/messageformat/locale/ms.js @@ -0,0 +1 @@ +MessageFormat.locale.ms=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/mt.js b/dist/locale/messageformat/locale/mt.js new file mode 100644 index 0000000..6a071a7 --- /dev/null +++ b/dist/locale/messageformat/locale/mt.js @@ -0,0 +1,12 @@ +MessageFormat.locale.mt = function (n) { + if (n == 1) { + return 'one'; + } + if (n === 0 || ((n % 100) >= 2 && (n % 100) <= 4 && n == Math.floor(n))) { + return 'few'; + } + if ((n % 100) >= 11 && (n % 100) <= 19 && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/nl.js b/dist/locale/messageformat/locale/nl.js new file mode 100644 index 0000000..f7ce047 --- /dev/null +++ b/dist/locale/messageformat/locale/nl.js @@ -0,0 +1 @@ +MessageFormat.locale.nl=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/no.js b/dist/locale/messageformat/locale/no.js new file mode 100644 index 0000000..1bdce27 --- /dev/null +++ b/dist/locale/messageformat/locale/no.js @@ -0,0 +1 @@ +MessageFormat.locale.no=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/or.js b/dist/locale/messageformat/locale/or.js new file mode 100644 index 0000000..f62761f --- /dev/null +++ b/dist/locale/messageformat/locale/or.js @@ -0,0 +1 @@ +MessageFormat.locale.or=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/pl.js b/dist/locale/messageformat/locale/pl.js new file mode 100644 index 0000000..a9020d0 --- /dev/null +++ b/dist/locale/messageformat/locale/pl.js @@ -0,0 +1,15 @@ +MessageFormat.locale.pl = function (n) { + if (n == 1) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 4 && + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { + return 'few'; + } + if ((n % 10) === 0 || n != 1 && (n % 10) == 1 || + ((n % 10) >= 5 && (n % 10) <= 9 || (n % 100) >= 12 && (n % 100) <= 14) && + n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/pt.js b/dist/locale/messageformat/locale/pt.js new file mode 100644 index 0000000..e0225d5 --- /dev/null +++ b/dist/locale/messageformat/locale/pt.js @@ -0,0 +1 @@ +MessageFormat.locale.pt=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ro.js b/dist/locale/messageformat/locale/ro.js new file mode 100644 index 0000000..26453ea --- /dev/null +++ b/dist/locale/messageformat/locale/ro.js @@ -0,0 +1,10 @@ +MessageFormat.locale.ro = function (n) { + if (n == 1) { + return 'one'; + } + if (n === 0 || n != 1 && (n % 100) >= 1 && + (n % 100) <= 19 && n == Math.floor(n)) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/ru.js b/dist/locale/messageformat/locale/ru.js new file mode 100644 index 0000000..c34bd63 --- /dev/null +++ b/dist/locale/messageformat/locale/ru.js @@ -0,0 +1,14 @@ +MessageFormat.locale.ru = function (n) { + if ((n % 10) == 1 && (n % 100) != 11) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 4 && + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { + return 'few'; + } + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/shi.js b/dist/locale/messageformat/locale/shi.js new file mode 100644 index 0000000..9e86dca --- /dev/null +++ b/dist/locale/messageformat/locale/shi.js @@ -0,0 +1,9 @@ +MessageFormat.locale.shi = function(n) { + if (n >= 0 && n <= 1) { + return 'one'; + } + if (n >= 2 && n <= 10 && n == Math.floor(n)) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/sk.js b/dist/locale/messageformat/locale/sk.js new file mode 100644 index 0000000..ef041dd --- /dev/null +++ b/dist/locale/messageformat/locale/sk.js @@ -0,0 +1,9 @@ +MessageFormat.locale.sk = function (n) { + if (n == 1) { + return 'one'; + } + if (n == 2 || n == 3 || n == 4) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/sl.js b/dist/locale/messageformat/locale/sl.js new file mode 100644 index 0000000..7dd591b --- /dev/null +++ b/dist/locale/messageformat/locale/sl.js @@ -0,0 +1,12 @@ +MessageFormat.locale.sl = function (n) { + if ((n % 100) == 1) { + return 'one'; + } + if ((n % 100) == 2) { + return 'two'; + } + if ((n % 100) == 3 || (n % 100) == 4) { + return 'few'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/sq.js b/dist/locale/messageformat/locale/sq.js new file mode 100644 index 0000000..3336c3d --- /dev/null +++ b/dist/locale/messageformat/locale/sq.js @@ -0,0 +1 @@ +MessageFormat.locale.sq=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/sr.js b/dist/locale/messageformat/locale/sr.js new file mode 100644 index 0000000..c2e3d3d --- /dev/null +++ b/dist/locale/messageformat/locale/sr.js @@ -0,0 +1,14 @@ +MessageFormat.locale.sr = function (n) { + if ((n % 10) == 1 && (n % 100) != 11) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 4 && + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { + return 'few'; + } + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/sv.js b/dist/locale/messageformat/locale/sv.js new file mode 100644 index 0000000..c3399c2 --- /dev/null +++ b/dist/locale/messageformat/locale/sv.js @@ -0,0 +1 @@ +MessageFormat.locale.sv=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/sw.js b/dist/locale/messageformat/locale/sw.js new file mode 100644 index 0000000..1c623cc --- /dev/null +++ b/dist/locale/messageformat/locale/sw.js @@ -0,0 +1 @@ +MessageFormat.locale.sw=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/ta.js b/dist/locale/messageformat/locale/ta.js new file mode 100644 index 0000000..cc5bf81 --- /dev/null +++ b/dist/locale/messageformat/locale/ta.js @@ -0,0 +1 @@ +MessageFormat.locale.ta=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/te.js b/dist/locale/messageformat/locale/te.js new file mode 100644 index 0000000..5f5b687 --- /dev/null +++ b/dist/locale/messageformat/locale/te.js @@ -0,0 +1 @@ +MessageFormat.locale.te=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/th.js b/dist/locale/messageformat/locale/th.js new file mode 100644 index 0000000..ccbf4e9 --- /dev/null +++ b/dist/locale/messageformat/locale/th.js @@ -0,0 +1 @@ +MessageFormat.locale.th=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/tl.js b/dist/locale/messageformat/locale/tl.js new file mode 100644 index 0000000..5fbb82f --- /dev/null +++ b/dist/locale/messageformat/locale/tl.js @@ -0,0 +1 @@ +MessageFormat.locale.tl=function(n){return n===0||n==1?"one":"other"} diff --git a/dist/locale/messageformat/locale/tr.js b/dist/locale/messageformat/locale/tr.js new file mode 100644 index 0000000..9dc7998 --- /dev/null +++ b/dist/locale/messageformat/locale/tr.js @@ -0,0 +1 @@ +MessageFormat.locale.tr=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/uk.js b/dist/locale/messageformat/locale/uk.js new file mode 100644 index 0000000..aad90c7 --- /dev/null +++ b/dist/locale/messageformat/locale/uk.js @@ -0,0 +1,14 @@ +MessageFormat.locale.uk = function (n) { + if ((n % 10) == 1 && (n % 100) != 11) { + return 'one'; + } + if ((n % 10) >= 2 && (n % 10) <= 4 && + ((n % 100) < 12 || (n % 100) > 14) && n == Math.floor(n)) { + return 'few'; + } + if ((n % 10) === 0 || ((n % 10) >= 5 && (n % 10) <= 9) || + ((n % 100) >= 11 && (n % 100) <= 14) && n == Math.floor(n)) { + return 'many'; + } + return 'other'; +}; diff --git a/dist/locale/messageformat/locale/ur.js b/dist/locale/messageformat/locale/ur.js new file mode 100644 index 0000000..7a3b71e --- /dev/null +++ b/dist/locale/messageformat/locale/ur.js @@ -0,0 +1 @@ +MessageFormat.locale.ur=function(n){return n===1?"one":"other"} diff --git a/dist/locale/messageformat/locale/vi.js b/dist/locale/messageformat/locale/vi.js new file mode 100644 index 0000000..ebc1ad3 --- /dev/null +++ b/dist/locale/messageformat/locale/vi.js @@ -0,0 +1 @@ +MessageFormat.locale.vi=function(n){return "other"} diff --git a/dist/locale/messageformat/locale/zh.js b/dist/locale/messageformat/locale/zh.js new file mode 100644 index 0000000..0496461 --- /dev/null +++ b/dist/locale/messageformat/locale/zh.js @@ -0,0 +1 @@ +MessageFormat.locale.zh=function(n){return "other"} -- libgit2 0.21.2