| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846 |
- /*! @preserve
- * numeral.js
- * locales : 2.0.6
- * license : MIT
- * http://adamwdraper.github.com/Numeral-js/
- */
- (function (global, factory) {
- if (typeof define === 'function' && define.amd) {
- define(['numeral'], factory);
- } else if (typeof module === 'object' && module.exports) {
- factory(require('./numeral'));
- } else {
- factory(global.numeral);
- }
- }(this, function (numeral) {
-
- (function() {
- numeral.register('locale', 'bg', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: { // I found these here http://www.unicode.org/cldr/charts/28/verify/numbers/bg.html
- thousand: 'хил',
- million: 'млн',
- billion: 'млрд',
- trillion: 'трлн'
- },
- ordinal: function (number) {
- // google translate suggests:
- // 1st=1-ви; 2nd=2-ри; 7th=7-ми;
- // 8th=8-ми and many others end with -ти
- // for example 3rd=3-ти
- // However since I've seen suggestions that in
- // Bulgarian the ordinal can be taken in
- // different forms (masculine, feminine, neuter)
- // I've opted to wimp out on commiting that to code
- return '';
- },
- currency: {
- symbol: 'лв'
- }
- });
- })();
- (function() {
-
- numeral.register('locale', 'chs', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十亿',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'cs', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: 'Kč'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'da-dk', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mia',
- trillion: 'b'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'DKK'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'de-ch', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'CHF'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'de', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'en-au', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '$'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'en-gb', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: '£'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'en-za', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (~~ (number % 100 / 10) === 1) ? 'th' :
- (b === 1) ? 'st' :
- (b === 2) ? 'nd' :
- (b === 3) ? 'rd' : 'th';
- },
- currency: {
- symbol: 'R'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'es-es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'es', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- var b = number % 10;
- return (b === 1 || b === 3) ? 'er' :
- (b === 2) ? 'do' :
- (b === 7 || b === 0) ? 'mo' :
- (b === 8) ? 'vo' :
- (b === 9) ? 'no' : 'to';
- },
- currency: {
- symbol: '$'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'et', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tuh',
- million: ' mln',
- billion: ' mld',
- trillion: ' trl'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'fi', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'fr-ca', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'M',
- billion: 'G',
- trillion: 'T'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '$'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'fr-ch', {
- delimiters: {
- thousands: '\'',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: 'CHF'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'fr', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return number === 1 ? 'er' : 'e';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'hu', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'E', // ezer
- million: 'M', // millió
- billion: 'Mrd', // milliárd
- trillion: 'T' // trillió
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: ' Ft'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'it', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mila',
- million: 'mil',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'ja', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: '千',
- million: '百万',
- billion: '十億',
- trillion: '兆'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '¥'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'lv', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: ' tūkst.',
- million: ' milj.',
- billion: ' mljrd.',
- trillion: ' trilj.'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'nl-be', {
- delimiters: {
- thousands: ' ',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : ' mln',
- billion : ' mld',
- trillion : ' bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
- })();
- (function() {
- numeral.register('locale', 'nl-nl', {
- delimiters: {
- thousands: '.',
- decimal : ','
- },
- abbreviations: {
- thousand : 'k',
- million : 'mln',
- billion : 'mrd',
- trillion : 'bln'
- },
- ordinal : function (number) {
- var remainder = number % 100;
- return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
- },
- currency: {
- symbol: '€ '
- }
- });
- })();
- (function() {
- numeral.register('locale', 'no', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'kr'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'pl', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tys.',
- million: 'mln',
- billion: 'mld',
- trillion: 'bln'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: 'PLN'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'pt-br', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'mil',
- million: 'milhões',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function (number) {
- return 'º';
- },
- currency: {
- symbol: 'R$'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'pt-pt', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'm',
- billion: 'b',
- trillion: 't'
- },
- ordinal : function (number) {
- return 'º';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'ru-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'ru', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тыс.',
- million: 'млн.',
- billion: 'млрд.',
- trillion: 'трлн.'
- },
- ordinal: function () {
- // not ideal, but since in Russian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '.';
- },
- currency: {
- symbol: 'руб.'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'sk', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'tis.',
- million: 'mil.',
- billion: 'b',
- trillion: 't'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'sl', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'k',
- million: 'mio',
- billion: 'mrd',
- trillion: 'trilijon'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '€'
- }
- });
- })();
- (function() {
-
- numeral.register('locale', 'th', {
- delimiters: {
- thousands: ',',
- decimal: '.'
- },
- abbreviations: {
- thousand: 'พัน',
- million: 'ล้าน',
- billion: 'พันล้าน',
- trillion: 'ล้านล้าน'
- },
- ordinal: function (number) {
- return '.';
- },
- currency: {
- symbol: '฿'
- }
- });
- })();
- (function() {
- var suffixes = {
- 1: '\'inci',
- 5: '\'inci',
- 8: '\'inci',
- 70: '\'inci',
- 80: '\'inci',
- 2: '\'nci',
- 7: '\'nci',
- 20: '\'nci',
- 50: '\'nci',
- 3: '\'üncü',
- 4: '\'üncü',
- 100: '\'üncü',
- 6: '\'ncı',
- 9: '\'uncu',
- 10: '\'uncu',
- 30: '\'uncu',
- 60: '\'ıncı',
- 90: '\'ıncı'
- };
- numeral.register('locale', 'tr', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: 'bin',
- million: 'milyon',
- billion: 'milyar',
- trillion: 'trilyon'
- },
- ordinal: function (number) {
- if (number === 0) { // special case for zero
- return '\'ıncı';
- }
- var a = number % 10,
- b = number % 100 - a,
- c = number >= 100 ? 100 : null;
- return suffixes[a] || suffixes[b] || suffixes[c];
- },
- currency: {
- symbol: '\u20BA'
- }
- });
- })();
- (function() {
- numeral.register('locale', 'uk-ua', {
- delimiters: {
- thousands: ' ',
- decimal: ','
- },
- abbreviations: {
- thousand: 'тис.',
- million: 'млн',
- billion: 'млрд',
- trillion: 'блн'
- },
- ordinal: function () {
- // not ideal, but since in Ukrainian it can taken on
- // different forms (masculine, feminine, neuter)
- // this is all we can do
- return '';
- },
- currency: {
- symbol: '\u20B4'
- }
- });
- })();
- (function() {
-
- numeral.register('locale', 'vi', {
- delimiters: {
- thousands: '.',
- decimal: ','
- },
- abbreviations: {
- thousand: ' nghìn',
- million: ' triệu',
- billion: ' tỷ',
- trillion: ' nghìn tỷ'
- },
- ordinal: function () {
- return '.';
- },
- currency: {
- symbol: '₫'
- }
- });
- })();
- }));
|