Comparing version 2.0.1 to 2.0.2
{ | ||
"name": "numeral", | ||
"repo": "adamwdraper/Numeral-js", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Format and manipulate numbers.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
{ | ||
"name": "numeral", | ||
"repo": "adamwdraper/Numeral-js", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Format and manipulate numbers.", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
150
Gruntfile.js
@@ -1,26 +0,47 @@ | ||
var fs = require('fs'); | ||
module.exports = function(grunt) { | ||
var minifiedFiles = { | ||
'min/numeral.min.js' : [ | ||
'numeral.js' | ||
], | ||
'min/locales.min.js': [ | ||
'locales.js' | ||
], | ||
'min/numeral-with-locales.min.js': [ | ||
'numeral-with-locales.js' | ||
] | ||
}; | ||
var compileType = function() { | ||
var type = this.data.type; | ||
var template = grunt.file.read('templates/types.js'); | ||
var anon = grunt.file.read('templates/anon.js'); | ||
var files = grunt.file.expand([ | ||
'src/' + type + '/*.js' | ||
]); | ||
var regexp = /\}\(this, function \(numeral\) \{\s([\s\S]+)(?:\s\}\)\);)/; | ||
var content = ''; | ||
var file; | ||
var i; | ||
// all the lang files need to be added manually | ||
fs.readdirSync('./src/locales').forEach(function (path) { | ||
var file = path.slice(0, -3), | ||
destination = 'min/locales/' + file + '.min.js', | ||
src = ['src/locales/' + path]; | ||
for (i = 0; i < files.length; i++) { | ||
file = grunt.file.read(files[i]); | ||
minifiedFiles[destination] = src; | ||
}); | ||
content += '\n' + grunt.template.process(anon, { | ||
data: { | ||
content: file.match(regexp)[1] | ||
} | ||
}) + '\n'; | ||
} | ||
grunt.file.write('temp/' + type + '.js', content); | ||
if (type === 'locales') { | ||
grunt.file.write('locales.js', grunt.template.process(template, { | ||
data: { | ||
type: type, | ||
content: content | ||
} | ||
})); | ||
} | ||
}, | ||
compileNumeral = function() { | ||
var regexp = /([\s])return numeral;(?:\s\}\)\);)/; | ||
var numeral = grunt.file.read('src/numeral.js'); | ||
var formats = grunt.file.read('temp/formats.js'); | ||
var index = numeral.indexOf('return numeral;'); | ||
numeral = numeral.substr(0, index) + '\n' + formats + numeral.substr(index); | ||
grunt.file.write('numeral.js', numeral); | ||
}; | ||
grunt.initConfig({ | ||
@@ -37,5 +58,4 @@ mochaTest : { | ||
files: [ | ||
'src/numeral.js', | ||
'src/formats/*.js', | ||
'src/locales/*.js', | ||
'numeral.js', | ||
'locales.js', | ||
'tests/numeral.js', | ||
@@ -62,5 +82,32 @@ 'tests/formats/*.js', | ||
}, | ||
compile: { | ||
locales: { | ||
type: 'locales' | ||
}, | ||
formats: { | ||
type: 'formats' | ||
} | ||
}, | ||
uglify: { | ||
my_target: { | ||
files: minifiedFiles | ||
min: { | ||
files: [ | ||
{ | ||
expand: true, | ||
cwd: 'src/', | ||
src: [ | ||
'locales/*.js' | ||
], | ||
dest: 'min/', | ||
ext: '.min.js' | ||
}, | ||
{ | ||
expand: true, | ||
src: [ | ||
'numeral.js', | ||
'locales.js' | ||
], | ||
dest: 'min/', | ||
ext: '.min.js' | ||
} | ||
] | ||
}, | ||
@@ -71,25 +118,2 @@ options: { | ||
}, | ||
concat: { | ||
numeral: { | ||
src: [ | ||
'src/numeral.js', | ||
'src/formats/*.js' | ||
], | ||
dest: 'numeral.js' | ||
}, | ||
locales: { | ||
src: [ | ||
'src/locales/*.js' | ||
], | ||
dest: 'locales.js' | ||
}, | ||
numeralWithLocales: { | ||
src: [ | ||
'src/numeral.js', | ||
'src/formats/*.js', | ||
'src/locales/*.js' | ||
], | ||
dest: 'numeral-with-locales.js' | ||
} | ||
}, | ||
jshint: { | ||
@@ -109,7 +133,9 @@ all: [ | ||
'noarg': true, | ||
'onevar': true, | ||
'undef': true, | ||
'sub': true, | ||
'strict': false, | ||
'quotmark': 'single' | ||
'quotmark': 'single', | ||
'globals': { | ||
'define': true | ||
} | ||
} | ||
@@ -121,3 +147,2 @@ } | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-contrib-concat'); | ||
grunt.loadNpmTasks('grunt-mocha-test'); | ||
@@ -130,4 +155,14 @@ grunt.loadNpmTasks('grunt-karma'); | ||
grunt.registerMultiTask('compile', compileType); | ||
grunt.registerTask('compile:numeral', compileNumeral); | ||
grunt.registerTask('build', [ | ||
'jshint', | ||
'compile', | ||
'compile:numeral' | ||
]); | ||
grunt.registerTask('test', [ | ||
'jshint', | ||
'build', | ||
'mochaTest', | ||
@@ -138,3 +173,3 @@ 'karma:local' | ||
grunt.registerTask('test:npm', [ | ||
'jshint', | ||
'build', | ||
'mochaTest' | ||
@@ -144,9 +179,8 @@ ]); | ||
grunt.registerTask('test:browser', [ | ||
'jshint', | ||
'build', | ||
'karma:local' | ||
]); | ||
// P | ||
grunt.registerTask('build', [ | ||
'concat', | ||
grunt.registerTask('dist', [ | ||
'build', | ||
'uglify' | ||
@@ -157,3 +191,3 @@ ]); | ||
grunt.registerTask('travis', [ | ||
'jshint', | ||
'build', | ||
'mochaTest', | ||
@@ -160,0 +194,0 @@ 'karma:ci' |
424
locales.js
@@ -1,10 +0,20 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : belgium-dutch (be-nl) | ||
* author : Dieter Luypaert : https://github.com/moeriki | ||
/*! @preserve | ||
* numeral.js | ||
* locales: 2.0.2 | ||
* license : MIT | ||
* http://adamwdraper.github.com/Numeral-js/ | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'be-nl', { | ||
(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', 'be-nl', { | ||
delimiters: { | ||
@@ -22,3 +32,3 @@ thousands: ' ', | ||
var remainder = number % 100; | ||
return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de'; | ||
@@ -30,13 +40,7 @@ }, | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Bulgarian | ||
* author : Don Vince : https://github.com/donvince/ | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'bg', { | ||
(function() { | ||
numeral.register('locale', 'bg', { | ||
delimiters: { | ||
@@ -67,12 +71,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : simplified chinese (chs) | ||
* author : badplum : https://github.com/badplum | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
(function() { | ||
numeral.register('locale', 'chs', { | ||
@@ -96,13 +95,7 @@ delimiters: { | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : czech (cs) | ||
* author : Anatoli Papirovski : https://github.com/apapirovski | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'cs', { | ||
(function() { | ||
numeral.register('locale', 'cs', { | ||
delimiters: { | ||
@@ -125,13 +118,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : danish denmark (dk) | ||
* author : Michael Storgaard : https://github.com/mstorgaard | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'da-dk', { | ||
(function() { | ||
numeral.register('locale', 'da-dk', { | ||
delimiters: { | ||
@@ -154,13 +141,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : German in Switzerland (de-ch) | ||
* author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky) | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'de-ch', { | ||
(function() { | ||
numeral.register('locale', 'de-ch', { | ||
delimiters: { | ||
@@ -183,13 +164,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium | ||
* author : Marco Krage : https://github.com/sinky | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'de', { | ||
(function() { | ||
numeral.register('locale', 'de', { | ||
delimiters: { | ||
@@ -212,13 +187,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : English Australia | ||
* author : Don Vince : https://github.com/donvince/ | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'en-au', { | ||
(function() { | ||
numeral.register('locale', 'en-au', { | ||
delimiters: { | ||
@@ -245,13 +214,7 @@ thousands: ',', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : english united kingdom (uk) | ||
* author : Dan Ristic : https://github.com/dristic | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'en-gb', { | ||
(function() { | ||
numeral.register('locale', 'en-gb', { | ||
delimiters: { | ||
@@ -278,13 +241,7 @@ thousands: ',', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : english south africa (uk) | ||
* author : Etienne Boshoff : etienne@zailab.com | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'en-za', { | ||
(function() { | ||
numeral.register('locale', 'en-za', { | ||
delimiters: { | ||
@@ -311,13 +268,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : spanish Spain | ||
* author : Hernan Garcia : https://github.com/hgarcia | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'es-es', { | ||
(function() { | ||
numeral.register('locale', 'es-es', { | ||
delimiters: { | ||
@@ -345,13 +296,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : spanish | ||
* author : Hernan Garcia : https://github.com/hgarcia | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'es', { | ||
(function() { | ||
numeral.register('locale', 'es', { | ||
delimiters: { | ||
@@ -379,16 +324,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Estonian | ||
* author : Illimar Tambek : https://github.com/ragulka | ||
* | ||
* Note: in Estonian, abbreviations are always separated | ||
* from numbers with a space | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'et', { | ||
(function() { | ||
numeral.register('locale', 'et', { | ||
delimiters: { | ||
@@ -411,13 +347,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Finnish | ||
* author : Sami Saada : https://github.com/samitheberber | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'fi', { | ||
(function() { | ||
numeral.register('locale', 'fi', { | ||
delimiters: { | ||
@@ -440,13 +370,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (Canada) (fr-ca) | ||
* author : Léo Renaud-Allaire : https://github.com/renaudleo | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'fr-ca', { | ||
(function() { | ||
numeral.register('locale', 'fr-ca', { | ||
delimiters: { | ||
@@ -469,13 +393,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (fr-ch) | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'fr-ch', { | ||
(function() { | ||
numeral.register('locale', 'fr-ch', { | ||
delimiters: { | ||
@@ -498,13 +416,7 @@ thousands: '\'', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (fr) | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'fr', { | ||
(function() { | ||
numeral.register('locale', 'fr', { | ||
delimiters: { | ||
@@ -527,13 +439,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Hungarian (hu) | ||
* author : Peter Bakondy : https://github.com/pbakondy | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'hu', { | ||
(function() { | ||
numeral.register('locale', 'hu', { | ||
delimiters: { | ||
@@ -556,13 +462,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : italian Italy (it) | ||
* author : Giacomo Trombi : http://cinquepunti.it | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'it', { | ||
(function() { | ||
numeral.register('locale', 'it', { | ||
delimiters: { | ||
@@ -585,13 +485,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : japanese | ||
* author : teppeis : https://github.com/teppeis | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'ja', { | ||
(function() { | ||
numeral.register('locale', 'ja', { | ||
delimiters: { | ||
@@ -614,13 +508,7 @@ thousands: ',', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Latvian (lv) | ||
* author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'lv', { | ||
(function() { | ||
numeral.register('locale', 'lv', { | ||
delimiters: { | ||
@@ -643,13 +531,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : netherlands-dutch (nl-nl) | ||
* author : Dave Clayton : https://github.com/davedx | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'nl-nl', { | ||
(function() { | ||
numeral.register('locale', 'nl-nl', { | ||
delimiters: { | ||
@@ -673,13 +555,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : norwegian (bokmål) | ||
* author : Ove Andersen : https://github.com/azzlack | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'no', { | ||
(function() { | ||
numeral.register('locale', 'no', { | ||
delimiters: { | ||
@@ -702,13 +578,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : polish (pl) | ||
* author : Dominik Bulaj : https://github.com/dominikbulaj | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'pl', { | ||
(function() { | ||
numeral.register('locale', 'pl', { | ||
delimiters: { | ||
@@ -731,13 +601,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : portuguese brazil (pt-br) | ||
* author : Ramiro Varandas Jr : https://github.com/ramirovjr | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'pt-br', { | ||
(function() { | ||
numeral.register('locale', 'pt-br', { | ||
delimiters: { | ||
@@ -760,13 +624,7 @@ thousands: '.', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : portuguese (pt-pt) | ||
* author : Diogo Resende : https://github.com/dresende | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'pt-pt', { | ||
(function() { | ||
numeral.register('locale', 'pt-pt', { | ||
delimiters: { | ||
@@ -789,11 +647,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
// numeral.js locale configuration | ||
// locale : Russian for the Ukraine (ru-ua) | ||
// author : Anatoli Papirovski : https://github.com/apapirovski | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'ru-ua', { | ||
(function() { | ||
numeral.register('locale', 'ru-ua', { | ||
delimiters: { | ||
@@ -819,13 +673,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : russian (ru) | ||
* author : Anatoli Papirovski : https://github.com/apapirovski | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'ru', { | ||
(function() { | ||
numeral.register('locale', 'ru', { | ||
delimiters: { | ||
@@ -851,13 +699,7 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : slovak (sk) | ||
* author : Ahmed Al Hafoudh : http://www.freevision.sk | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'sk', { | ||
(function() { | ||
numeral.register('locale', 'sk', { | ||
delimiters: { | ||
@@ -880,12 +722,30 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : thai (th) | ||
* author : Sathit Jittanupat : https://github.com/jojosati | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
(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', { | ||
@@ -909,12 +769,7 @@ delimiters: { | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js locale configuration | ||
* locale : turkish (tr) | ||
* author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'), | ||
suffixes = { | ||
(function() { | ||
var suffixes = { | ||
1: '\'inci', | ||
@@ -971,11 +826,7 @@ 5: '\'inci', | ||
}); | ||
}()); | ||
})(); | ||
// numeral.js locale configuration | ||
// locale : Ukrainian for the Ukraine (uk-ua) | ||
// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko) | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('locale', 'uk-ua', { | ||
(function() { | ||
numeral.register('locale', 'uk-ua', { | ||
delimiters: { | ||
@@ -1001,2 +852,5 @@ thousands: ' ', | ||
}); | ||
}()); | ||
})(); | ||
})); |
@@ -1,1 +0,7 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","be-nl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&b<=1||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&b<=1||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral"),b={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ı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})}(); | ||
/*! @preserve | ||
* numeral.js | ||
* locales: 2.0.2 | ||
* license : MIT | ||
* http://adamwdraper.github.com/Numeral-js/ | ||
*/ | ||
!function(a,b){"function"==typeof define&&define.amd?define(["numeral"],b):b("object"==typeof module&&module.exports?require("./numeral"):a.numeral)}(this,function(a){!function(){a.register("locale","be-nl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})}(),function(){a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})}(),function(){a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})}(),function(){a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})}(),function(){a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})}(),function(){a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})}(),function(){a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})}(),function(){a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})}(),function(){a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})}(),function(){a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})}(),function(){a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})}(),function(){a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})}(),function(){a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})}(),function(){a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(),function(){a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(),function(){a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})}(),function(){a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})}(),function(){a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})}(),function(){a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(),function(){a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})}(),function(){a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})}(),function(){a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","sl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mrd",trillion:"trilijon"},ordinal:function(){return"."},currency:{symbol:"€"}})}(),function(){a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})}(),function(){var b={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ı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})}(),function(){a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})}()}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","be-nl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&b<=1||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","be-nl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:" mln",billion:" mld",trillion:" bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","bg",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"хил",million:"млн",billion:"млрд",trillion:"трлн"},ordinal:function(a){return""},currency:{symbol:"лв"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","chs",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","cs",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"Kč"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","da-dk",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","de-ch",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"CHF"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","de",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-au",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-gb",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"£"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","en-za",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"R"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","es-es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","es",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mm",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===b||3===b?"er":2===b?"do":7===b||0===b?"mo":8===b?"vo":9===b?"no":"to"},currency:{symbol:"$"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","et",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(a){return"."},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fi",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr-ca",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"M",billion:"G",trillion:"T"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"$"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr-ch",{delimiters:{thousands:"'",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"CHF"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","fr",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return 1===a?"er":"e"},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","hu",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"E",million:"M",billion:"Mrd",trillion:"T"},ordinal:function(a){return"."},currency:{symbol:" Ft"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","it",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mila",million:"mil",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ja",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十億",trillion:"兆"},ordinal:function(a){return"."},currency:{symbol:"¥"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","lv",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tūkst.",million:" milj.",billion:" mljrd.",trillion:" trilj."},ordinal:function(a){return"."},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&b<=1||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","nl-nl",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mln",billion:"mrd",trillion:"bln"},ordinal:function(a){var b=a%100;return 0!==a&&1>=b||8===b||b>=20?"ste":"de"},currency:{symbol:"€ "}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","no",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"."},currency:{symbol:"kr"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pl",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tys.",million:"mln",billion:"mld",trillion:"bln"},ordinal:function(a){return"."},currency:{symbol:"PLN"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pt-br",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"mil",million:"milhões",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"R$"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","pt-pt",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){return"º"},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ru-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"₴"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","ru",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тыс.",million:"млн.",billion:"млрд.",trillion:"трлн."},ordinal:function(){return"."},currency:{symbol:"руб."}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","sk",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"tis.",million:"mil.",billion:"b",trillion:"t"},ordinal:function(){return"."},currency:{symbol:"€"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","th",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"พัน",million:"ล้าน",billion:"พันล้าน",trillion:"ล้านล้าน"},ordinal:function(a){return"."},currency:{symbol:"฿"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral"),b={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ı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){var b={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ı"};a.register("locale","tr",{delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"bin",million:"milyon",billion:"milyar",trillion:"trilyon"},ordinal:function(a){if(0===a)return"'ıncı";var c=a%10,d=a%100-c,e=a>=100?100:null;return b[c]||b[d]||b[e]},currency:{symbol:"₺"}})}); |
@@ -1,1 +0,1 @@ | ||
!function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(["../numeral"],b):b("object"==typeof module&&module.exports?require("../numeral"):a.numeral)}(this,function(a){a.register("locale","uk-ua",{delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:"тис.",million:"млн",billion:"млрд",trillion:"блн"},ordinal:function(){return""},currency:{symbol:"₴"}})}); |
/*! @preserve | ||
* numeral.js | ||
* version : 2.0.1 | ||
* version : 2.0.2 | ||
* author : Adam Draper | ||
@@ -8,2 +8,2 @@ * license : MIT | ||
*/ | ||
(function(){function a(a,b){this._input=a,this._value=b}var b,c,d="2.0.1",e={},f={},g={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0"},h={currentLocale:g.currentLocale,zeroFormat:g.zeroFormat,nullFormat:g.nullFormat,defaultFormat:g.defaultFormat};b=function(d){var f,g,i,j;if(b.isNumeral(d))f=d.value();else if(0===d||"undefined"==typeof d)f=0;else if(null===d||c.isNaN(d))f=null;else if("string"==typeof d)if(h.zeroFormat&&d===h.zeroFormat)f=0;else if(h.nullFormat&&d===h.nullFormat||!d.replace(/[^0-9]+/g,"").length)f=null;else{for(g in e)if(j="function"==typeof e[g].regexps.unformat?e[g].regexps.unformat():e[g].regexps.unformat,j&&d.match(j)){i=e[g].unformat;break}i=i||b._.stringToNumber,f=i(d)}else f=Number(d)||null;return new a(d,f)},b.version=d,b.isNumeral=function(b){return b instanceof a},b._=c={numberToFormat:function(a,c,d){var e,g,h,i,j,k=f[b.options.currentLocale],l=!1,m=!1,n=!1,o="",p=1e12,q=1e9,r=1e6,s=1e3,t="",u=!1;return a=a||0,g=Math.abs(a),b._.includes(c,"(")?(l=!0,c=c.slice(1,-1)):b._.includes(c,"+")&&(m=!0,c=c.replace(/\+/g,"")),b._.includes(c,"a")&&(e=c.match(/a(k|m|b|t)?/),e=!!e&&e[1],b._.includes(c," a")&&(o=" "),c=c.replace(new RegExp(o+"a[kmbt]?"),""),g>=p&&!e||"t"===e?(o+=k.abbreviations.trillion,a/=p):g<p&&g>=q&&!e||"b"===e?(o+=k.abbreviations.billion,a/=q):g<q&&g>=r&&!e||"m"===e?(o+=k.abbreviations.million,a/=r):(g<r&&g>=s&&!e||"k"===e)&&(o+=k.abbreviations.thousand,a/=s)),b._.includes(c,"[.]")&&(n=!0,c=c.replace("[.]",".")),h=a.toString().split(".")[0],i=c.split(".")[1],j=c.indexOf(","),i?(b._.includes(i,"[")?(i=i.replace("]",""),i=i.split("["),t=b._.toFixed(a,i[0].length+i[1].length,d,i[1].length)):t=b._.toFixed(a,i.length,d),h=t.split(".")[0],t=b._.includes(t,".")?k.delimiters.decimal+t.split(".")[1]:"",n&&0===Number(t.slice(1))&&(t="")):h=b._.toFixed(a,null,d),b._.includes(h,"-")&&(h=h.slice(1),u=!0),j>-1&&(h=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+k.delimiters.thousands)),0===c.indexOf(".")&&(h=""),(l&&u?"(":"")+(!l&&u?"-":"")+(!u&&m?"+":"")+h+t+(o?o:"")+(l&&u?")":"")},stringToNumber:function(a){var b,c,d,e=f[h.currentLocale],g=a,i={thousand:3,million:6,billion:9,trillion:12};if(h.zeroFormat&&a===h.zeroFormat)c=0;else if(h.nullFormat&&a===h.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{c=1,"."!==e.delimiters.decimal&&(a=a.replace(/\./g,"").replace(e.delimiters.decimal,"."));for(b in i)if(d=new RegExp("[^a-zA-Z]"+e.abbreviations[b]+"(?:\\)|(\\"+e.currency.symbol+")?(?:\\))?)?$"),g.match(d)){c*=Math.pow(10,i[b]);break}c*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),c*=Number(a)}return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},includes:function(a,b){return a.indexOf(b)!==-1},reduce:function(a,b){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof b)throw new TypeError(b+" is not a function");var c,d=Object(a),e=d.length>>>0,f=0;if(3===arguments.length)c=arguments[2];else{for(;f<e&&!(f in d);)f++;if(f>=e)throw new TypeError("Reduce of empty array with no initial value");c=d[f++]}for(;f<e;f++)f in d&&(c=b(c,d[f],f,d));return c},multiplier:function(a){var b=a.toString().split(".");return b.length<2?1:Math.pow(10,b[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(a,b){var d=c.multiplier(b);return a>d?a:d},1)},toFixed:function(a,b,c,d){var e,f,g,h,i=a.toString().split("."),j=b-(d||0);return e=2===i.length?Math.min(Math.max(i[1].length,j),b):j,g=Math.pow(10,e),h=(c(a*g)/g).toFixed(e),d>b-e&&(f=new RegExp("\\.?0{1,"+(d-(b-e))+"}$"),h=h.replace(f,"")),h}},b.options=h,b.formats=e,b.locales=f,b.locale=function(a){return a?(h.currentLocale=a.toLowerCase(),b):h.currentLocale},b.localeData=function(a){if(!a)return f[h.currentLocale];if(a=a.toLowerCase(),!f[a])throw new Error("Unknown locale : "+a);return f[a]},b.reset=function(){for(var a in g)h[a]=g[a]},b.zeroFormat=function(a){h.zeroFormat="string"==typeof a?a:null},b.nullFormat=function(a){h.nullFormat="string"==typeof a?a:null},b.defaultFormat=function(a){h.defaultFormat="string"==typeof a?a:"0.0"},b.register=function(a,b,c){if(b=b.toLowerCase(),this[a+"s"][b])throw new TypeError(b+" "+a+" already registered.");this[a+"s"][b]=c},b.validate=function(a,c){var d,e,f,g,h,i,j,k;if("string"!=typeof a&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(""===a)return!1;try{j=b.localeData(c)}catch(a){j=b.localeData(b.locale())}return f=j.currency.symbol,h=j.abbreviations,d=j.delimiters.decimal,e="."===j.delimiters.thousands?"\\.":j.delimiters.thousands,k=a.match(/^[^\d]+/),(null===k||(a=a.substr(1),k[0]===f))&&(k=a.match(/[^\d]+$/),(null===k||(a=a.slice(0,-1),k[0]===h.thousand||k[0]===h.million||k[0]===h.billion||k[0]===h.trillion))&&(i=new RegExp(e+"{2}"),!a.match(/[^\d.,]/g)&&(g=a.split(d),!(g.length>2)&&(g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i):1===g[0].length?!!g[0].match(/^\d+$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/)))))},b.fn=a.prototype={clone:function(){return b(this)},format:function(a,c){var d,f,g,i=this._value,j=a||h.defaultFormat;if(c=c||Math.round,0===i&&null!==h.zeroFormat)f=h.zeroFormat;else if(null===i&&null!==h.nullFormat)f=h.nullFormat;else{for(d in e)if(j.match(e[d].regexps.format)){g=e[d].format;break}g=g||b._.numberToFormat,f=g(i,j,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){function b(a,b,c,e){return a+Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([this._value,a],b,0)/d,this},subtract:function(a){function b(a,b,c,e){return a-Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([a],b,Math.round(this._value*d))/d,this},multiply:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)*Math.round(b*f)/Math.round(f*f)}return this._value=c.reduce([this._value,a],b,1),this},divide:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)/Math.round(b*f)}return this._value=c.reduce([this._value,a],b),this},difference:function(a){return Math.abs(b(this._value).subtract(a).value())}},b.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}}),"undefined"!=typeof module&&module.exports&&(module.exports=b),"undefined"==typeof ender&&(this.numeral=b),"function"==typeof define&&define.amd&&define([],function(){return b})}).call(this),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral"),b={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};a.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp("("+b.suffixes.concat(c.suffixes).join("|")+")")},format:function(d,e,f){var g,h,i,j,k=a._.includes(e,"ib")?c:b,l=a._.includes(e," b")||a._.includes(e," ib")?" ":"";for(e=e.replace(/\s?i?b/,""),h=0;h<=k.suffixes.length;h++)if(i=Math.pow(k.base,h),j=Math.pow(k.base,h+1),null===d||0===d||d>=i&&d<j){l+=k.suffixes[h],i>0&&(d/=i);break}return g=a._.numberToFormat(d,e,f),g+l},unformat:function(d){var e,f,g=a._.stringToNumber(d);if(g){for(e=b.suffixes.length-1;e>=0;e--){if(a._.includes(d,b.suffixes[e])){f=Math.pow(b.base,e);break}if(a._.includes(d,c.suffixes[e])){f=Math.pow(c.base,e);break}}g*=f||1}return g}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("format","currency",{regexps:{format:/(\$)/},format:function(b,c,d){var e,f,g=a.locales[a.options.currentLocale],h=c.indexOf("$"),i=c.indexOf("("),j=c.indexOf("-"),k=a._.includes(c," $")||a._.includes(c,"$ ")?" ":"";return c=c.replace(/\s?\$\s?/,""),f=a._.numberToFormat(b,c,d),h<=1?a._.includes(f,"(")||a._.includes(f,"-")?(f=f.split(""),e=h<i||h<j?0:1,f.splice(e,0,g.currency.symbol+k),f=f.join("")):f=g.currency.symbol+k+f:a._.includes(f,")")?(f=f.split(""),f.splice(-1,0,k+g.currency.symbol),f=f.join("")):f=f+k+g.currency.symbol,f}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(b,c,d){var e,f="number"!=typeof b||a._.isNaN(b)?"0e+0":b.toExponential(),g=f.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),e=a._.numberToFormat(Number(g[0]),c,d),e+"e"+g[1]},unformat:function(b){function c(b,c,d,e){var f=a._.correctionFactor(b,c),g=b*f*(c*f)/(f*f);return g}var d=a._.includes(b,"e+")?b.split("e+"):b.split("e-"),e=Number(d[0]),f=Number(d[1]);return f=a._.includes(b,"e-")?f*=-1:f,a._.reduce([e,Math.pow(10,f)],c,1)}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");"undefined"!=typeof window&&this.numeral?a=this.numeral:"undefined"!=typeof module&&module.exports&&(a=require("../numeral")),a.register("format","ordinal",{regexps:{format:/(o)/},format:function(b,c,d){var e,f=a.locales[a.options.currentLocale],g=a._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=f.ordinal(b),e=a._.numberToFormat(b,c,d),e+g}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(b,c,d){var e,f=a._.includes(c," %")?" ":"";return b*=100,c=c.replace(/\s?\%/,""),e=a._.numberToFormat(b,c,d),a._.includes(e,")")?(e=e.split(""),e.splice(-1,0,f+"%"),e=e.join("")):e=e+f+"%",e},unformat:function(b){return.01*a._.stringToNumber(b)}})}(),function(){var a="undefined"!=typeof window&&window.numeral?window.numeral:require("../numeral");a.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,b,c){var d=Math.floor(a/60/60),e=Math.floor((a-60*d*60)/60),f=Math.round(a-60*d*60-60*e);return d+":"+(e<10?"0"+e:e)+":"+(f<10?"0"+f:f)},unformat:function(a){var b=a.split(":"),c=0;return 3===b.length?(c+=60*Number(b[0])*60,c+=60*Number(b[1]),c+=Number(b[2])):2===b.length&&(c+=60*Number(b[0]),c+=Number(b[1])),Number(c)}})}(); | ||
!function(a,b){"function"==typeof define&&define.amd?define(b):"object"==typeof module&&module.exports?module.exports=b():a.numeral=b()}(this,function(){function a(a,b){this._input=a,this._value=b}var b,c,d="2.0.2",e={},f={},g={currentLocale:"en",zeroFormat:null,nullFormat:null,defaultFormat:"0,0"},h={currentLocale:g.currentLocale,zeroFormat:g.zeroFormat,nullFormat:g.nullFormat,defaultFormat:g.defaultFormat};return b=function(d){var f,g,i,j;if(b.isNumeral(d))f=d.value();else if(0===d||"undefined"==typeof d)f=0;else if(null===d||c.isNaN(d))f=null;else if("string"==typeof d)if(h.zeroFormat&&d===h.zeroFormat)f=0;else if(h.nullFormat&&d===h.nullFormat||!d.replace(/[^0-9]+/g,"").length)f=null;else{for(g in e)if(j="function"==typeof e[g].regexps.unformat?e[g].regexps.unformat():e[g].regexps.unformat,j&&d.match(j)){i=e[g].unformat;break}i=i||b._.stringToNumber,f=i(d)}else f=Number(d)||null;return new a(d,f)},b.version=d,b.isNumeral=function(b){return b instanceof a},b._=c={numberToFormat:function(a,c,d){var e,g,h,i,j,k=f[b.options.currentLocale],l=!1,m=!1,n=!1,o="",p=1e12,q=1e9,r=1e6,s=1e3,t="",u=!1;return a=a||0,g=Math.abs(a),b._.includes(c,"(")?(l=!0,c=c.slice(1,-1)):b._.includes(c,"+")&&(m=!0,c=c.replace(/\+/g,"")),b._.includes(c,"a")&&(e=c.match(/a(k|m|b|t)?/),e=e?e[1]:!1,b._.includes(c," a")&&(o=" "),c=c.replace(new RegExp(o+"a[kmbt]?"),""),g>=p&&!e||"t"===e?(o+=k.abbreviations.trillion,a/=p):p>g&&g>=q&&!e||"b"===e?(o+=k.abbreviations.billion,a/=q):q>g&&g>=r&&!e||"m"===e?(o+=k.abbreviations.million,a/=r):(r>g&&g>=s&&!e||"k"===e)&&(o+=k.abbreviations.thousand,a/=s)),b._.includes(c,"[.]")&&(n=!0,c=c.replace("[.]",".")),h=a.toString().split(".")[0],i=c.split(".")[1],j=c.indexOf(","),i?(b._.includes(i,"[")?(i=i.replace("]",""),i=i.split("["),t=b._.toFixed(a,i[0].length+i[1].length,d,i[1].length)):t=b._.toFixed(a,i.length,d),h=t.split(".")[0],t=b._.includes(t,".")?k.delimiters.decimal+t.split(".")[1]:"",n&&0===Number(t.slice(1))&&(t="")):h=b._.toFixed(a,null,d),b._.includes(h,"-")&&(h=h.slice(1),u=!0),j>-1&&(h=h.toString().replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1"+k.delimiters.thousands)),0===c.indexOf(".")&&(h=""),(l&&u?"(":"")+(!l&&u?"-":"")+(!u&&m?"+":"")+h+t+(o?o:"")+(l&&u?")":"")},stringToNumber:function(a){var b,c,d,e=f[h.currentLocale],g=a,i={thousand:3,million:6,billion:9,trillion:12};if(h.zeroFormat&&a===h.zeroFormat)c=0;else if(h.nullFormat&&a===h.nullFormat||!a.replace(/[^0-9]+/g,"").length)c=null;else{c=1,"."!==e.delimiters.decimal&&(a=a.replace(/\./g,"").replace(e.delimiters.decimal,"."));for(b in i)if(d=new RegExp("[^a-zA-Z]"+e.abbreviations[b]+"(?:\\)|(\\"+e.currency.symbol+")?(?:\\))?)?$"),g.match(d)){c*=Math.pow(10,i[b]);break}c*=(a.split("-").length+Math.min(a.split("(").length-1,a.split(")").length-1))%2?1:-1,a=a.replace(/[^0-9\.]+/g,""),c*=Number(a)}return c},isNaN:function(a){return"number"==typeof a&&isNaN(a)},includes:function(a,b){return-1!==a.indexOf(b)},reduce:function(a,b){if(null===this)throw new TypeError("Array.prototype.reduce called on null or undefined");if("function"!=typeof b)throw new TypeError(b+" is not a function");var c,d=Object(a),e=d.length>>>0,f=0;if(3===arguments.length)c=arguments[2];else{for(;e>f&&!(f in d);)f++;if(f>=e)throw new TypeError("Reduce of empty array with no initial value");c=d[f++]}for(;e>f;f++)f in d&&(c=b(c,d[f],f,d));return c},multiplier:function(a){var b=a.toString().split(".");return b.length<2?1:Math.pow(10,b[1].length)},correctionFactor:function(){var a=Array.prototype.slice.call(arguments);return a.reduce(function(a,b){var d=c.multiplier(b);return a>d?a:d},1)},toFixed:function(a,b,c,d){var e,f,g,h,i=a.toString().split("."),j=b-(d||0);return e=2===i.length?Math.min(Math.max(i[1].length,j),b):j,g=Math.pow(10,e),h=(c(a*g)/g).toFixed(e),d>b-e&&(f=new RegExp("\\.?0{1,"+(d-(b-e))+"}$"),h=h.replace(f,"")),h}},b.options=h,b.formats=e,b.locales=f,b.locale=function(a){return a&&(h.currentLocale=a.toLowerCase()),h.currentLocale},b.localeData=function(a){if(!a)return f[h.currentLocale];if(a=a.toLowerCase(),!f[a])throw new Error("Unknown locale : "+a);return f[a]},b.reset=function(){for(var a in g)h[a]=g[a]},b.zeroFormat=function(a){h.zeroFormat="string"==typeof a?a:null},b.nullFormat=function(a){h.nullFormat="string"==typeof a?a:null},b.defaultFormat=function(a){h.defaultFormat="string"==typeof a?a:"0.0"},b.register=function(a,b,c){if(b=b.toLowerCase(),this[a+"s"][b])throw new TypeError(b+" "+a+" already registered.");return this[a+"s"][b]=c,c},b.validate=function(a,c){var d,e,f,g,h,i,j,k;if("string"!=typeof a&&(a+="",console.warn&&console.warn("Numeral.js: Value is not string. It has been co-erced to: ",a)),a=a.trim(),a.match(/^\d+$/))return!0;if(""===a)return!1;try{j=b.localeData(c)}catch(l){j=b.localeData(b.locale())}return f=j.currency.symbol,h=j.abbreviations,d=j.delimiters.decimal,e="."===j.delimiters.thousands?"\\.":j.delimiters.thousands,k=a.match(/^[^\d]+/),null!==k&&(a=a.substr(1),k[0]!==f)?!1:(k=a.match(/[^\d]+$/),null!==k&&(a=a.slice(0,-1),k[0]!==h.thousand&&k[0]!==h.million&&k[0]!==h.billion&&k[0]!==h.trillion)?!1:(i=new RegExp(e+"{2}"),a.match(/[^\d.,]/g)?!1:(g=a.split(d),g.length>2?!1:g.length<2?!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i):1===g[0].length?!!g[0].match(/^\d+$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/):!!g[0].match(/^\d+.*\d$/)&&!g[0].match(i)&&!!g[1].match(/^\d+$/))))},b.fn=a.prototype={clone:function(){return b(this)},format:function(a,c){var d,f,g,i=this._value,j=a||h.defaultFormat;if(c=c||Math.round,0===i&&null!==h.zeroFormat)f=h.zeroFormat;else if(null===i&&null!==h.nullFormat)f=h.nullFormat;else{for(d in e)if(j.match(e[d].regexps.format)){g=e[d].format;break}g=g||b._.numberToFormat,f=g(i,j,c)}return f},value:function(){return this._value},input:function(){return this._input},set:function(a){return this._value=Number(a),this},add:function(a){function b(a,b,c,e){return a+Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([this._value,a],b,0)/d,this},subtract:function(a){function b(a,b,c,e){return a-Math.round(d*b)}var d=c.correctionFactor.call(null,this._value,a);return this._value=c.reduce([a],b,Math.round(this._value*d))/d,this},multiply:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)*Math.round(b*f)/Math.round(f*f)}return this._value=c.reduce([this._value,a],b,1),this},divide:function(a){function b(a,b,d,e){var f=c.correctionFactor(a,b);return Math.round(a*f)/Math.round(b*f)}return this._value=c.reduce([this._value,a],b),this},difference:function(a){return Math.abs(b(this._value).subtract(a).value())}},b.register("locale","en",{delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"k",million:"m",billion:"b",trillion:"t"},ordinal:function(a){var b=a%10;return 1===~~(a%100/10)?"th":1===b?"st":2===b?"nd":3===b?"rd":"th"},currency:{symbol:"$"}}),function(){var a={base:1e3,suffixes:["B","KB","MB","GB","TB","PB","EB","ZB","YB"]},c={base:1024,suffixes:["B","KiB","MiB","GiB","TiB","PiB","EiB","ZiB","YiB"]};b.register("format","bytes",{regexps:{format:/([0\s]i?b)/,unformat:new RegExp("("+a.suffixes.concat(c.suffixes).join("|")+")")},format:function(d,e,f){var g,h,i,j,k=b._.includes(e,"ib")?c:a,l=b._.includes(e," b")||b._.includes(e," ib")?" ":"";for(e=e.replace(/\s?i?b/,""),h=0;h<=k.suffixes.length;h++)if(i=Math.pow(k.base,h),j=Math.pow(k.base,h+1),null===d||0===d||d>=i&&j>d){l+=k.suffixes[h],i>0&&(d/=i);break}return g=b._.numberToFormat(d,e,f),g+l},unformat:function(d){var e,f,g=b._.stringToNumber(d);if(g){for(e=a.suffixes.length-1;e>=0;e--){if(b._.includes(d,a.suffixes[e])){f=Math.pow(a.base,e);break}if(b._.includes(d,c.suffixes[e])){f=Math.pow(c.base,e);break}}g*=f||1}return g}})}(),function(){b.register("format","currency",{regexps:{format:/(\$)/},format:function(a,c,d){var e,f,g=b.locales[b.options.currentLocale],h=c.indexOf("$"),i=c.indexOf("("),j=c.indexOf("-"),k=b._.includes(c," $")||b._.includes(c,"$ ")?" ":"";return c=c.replace(/\s?\$\s?/,""),f=b._.numberToFormat(a,c,d),1>=h?b._.includes(f,"(")||b._.includes(f,"-")?(f=f.split(""),e=i>h||j>h?0:1,f.splice(e,0,g.currency.symbol+k),f=f.join("")):f=g.currency.symbol+k+f:b._.includes(f,")")?(f=f.split(""),f.splice(-1,0,k+g.currency.symbol),f=f.join("")):f=f+k+g.currency.symbol,f}})}(),function(){b.register("format","exponential",{regexps:{format:/(e\+|e-)/,unformat:/(e\+|e-)/},format:function(a,c,d){var e,f="number"!=typeof a||b._.isNaN(a)?"0e+0":a.toExponential(),g=f.split("e");return c=c.replace(/e[\+|\-]{1}0/,""),e=b._.numberToFormat(Number(g[0]),c,d),e+"e"+g[1]},unformat:function(a){function c(a,c,d,e){var f=b._.correctionFactor(a,c),g=a*f*(c*f)/(f*f);return g}var d=b._.includes(a,"e+")?a.split("e+"):a.split("e-"),e=Number(d[0]),f=Number(d[1]);return f=b._.includes(a,"e-")?f*=-1:f,b._.reduce([e,Math.pow(10,f)],c,1)}})}(),function(){b.register("format","ordinal",{regexps:{format:/(o)/},format:function(a,c,d){var e,f=b.locales[b.options.currentLocale],g=b._.includes(c," o")?" ":"";return c=c.replace(/\s?o/,""),g+=f.ordinal(a),e=b._.numberToFormat(a,c,d),e+g}})}(),function(){b.register("format","percentage",{regexps:{format:/(%)/,unformat:/(%)/},format:function(a,c,d){var e,f=b._.includes(c," %")?" ":"";return a=100*a,c=c.replace(/\s?\%/,""),e=b._.numberToFormat(a,c,d),b._.includes(e,")")?(e=e.split(""),e.splice(-1,0,f+"%"),e=e.join("")):e=e+f+"%",e},unformat:function(a){return.01*b._.stringToNumber(a)}})}(),function(){b.register("format","time",{regexps:{format:/(:)/,unformat:/(:)/},format:function(a,b,c){var d=Math.floor(a/60/60),e=Math.floor((a-60*d*60)/60),f=Math.round(a-60*d*60-60*e);return d+":"+(10>e?"0"+e:e)+":"+(10>f?"0"+f:f)},unformat:function(a){var b=a.split(":"),c=0;return 3===b.length?(c+=60*Number(b[0])*60,c+=60*Number(b[1]),c+=Number(b[2])):2===b.length&&(c+=60*Number(b[0]),c+=Number(b[1])),Number(c)}})}(),b}); |
134
numeral.js
/*! @preserve | ||
* numeral.js | ||
* version : 2.0.1 | ||
* version : 2.0.2 | ||
* author : Adam Draper | ||
@@ -9,3 +9,11 @@ * license : MIT | ||
(function() { | ||
(function (global, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = factory(); | ||
} else { | ||
global.numeral = factory(); | ||
} | ||
}(this, function () { | ||
/************************************ | ||
@@ -17,3 +25,3 @@ Variables | ||
_, | ||
VERSION = '2.0.1', | ||
VERSION = '2.0.2', | ||
formats = {}, | ||
@@ -372,9 +380,7 @@ locales = {}, | ||
numeral.locale = function(key) { | ||
if (!key) { | ||
return options.currentLocale; | ||
if (key) { | ||
options.currentLocale = key.toLowerCase(); | ||
} | ||
options.currentLocale = key.toLowerCase(); | ||
return numeral; | ||
return options.currentLocale; | ||
}; | ||
@@ -425,2 +431,4 @@ | ||
this[type + 's'][name] = format; | ||
return format; | ||
}; | ||
@@ -644,36 +652,6 @@ | ||
/************************************ | ||
Exposing Numeral | ||
************************************/ | ||
// CommonJS module is defined | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = numeral; | ||
} | ||
/*global ender:false */ | ||
if (typeof ender === 'undefined') { | ||
// here, `this` means `window` in the browser, or `global` on the server | ||
// add `numeral` as a global object via a string identifier, | ||
// for Closure Compiler 'advanced' mode | ||
this['numeral'] = numeral; | ||
} | ||
/*global define:false */ | ||
if (typeof define === 'function' && define.amd) { | ||
define([], function() { | ||
return numeral; | ||
}); | ||
} | ||
}).call(this); | ||
/* | ||
* numeral.js format configuration | ||
* format : bytes | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'), | ||
decimal = { | ||
(function() { | ||
var decimal = { | ||
base: 1000, | ||
@@ -748,13 +726,7 @@ suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js format configuration | ||
* format : currency | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('format', 'currency', { | ||
(function() { | ||
numeral.register('format', 'currency', { | ||
regexps: { | ||
@@ -806,13 +778,7 @@ format: /(\$)/ | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js format configuration | ||
* format : exponential | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('format', 'exponential', { | ||
(function() { | ||
numeral.register('format', 'exponential', { | ||
regexps: { | ||
@@ -849,22 +815,7 @@ format: /(e\+|e-)/, | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js format configuration | ||
* format : ordinal | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// get numeral from environment | ||
if (typeof window !== 'undefined' && this.numeral) { | ||
// Browser | ||
numeral = this.numeral; | ||
} else if (typeof module !== 'undefined' && module.exports) { | ||
// Node | ||
numeral = require('../numeral'); | ||
} | ||
numeral.register('format', 'ordinal', { | ||
(function() { | ||
numeral.register('format', 'ordinal', { | ||
regexps: { | ||
@@ -888,13 +839,7 @@ format: /(o)/ | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js format configuration | ||
* format : percentage | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('format', 'percentage', { | ||
(function() { | ||
numeral.register('format', 'percentage', { | ||
regexps: { | ||
@@ -931,13 +876,7 @@ format: /(%)/, | ||
}); | ||
}()); | ||
})(); | ||
/* | ||
* numeral.js format configuration | ||
* format : time | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
numeral.register('format', 'time', { | ||
(function() { | ||
numeral.register('format', 'time', { | ||
regexps: { | ||
@@ -975,2 +914,5 @@ format: /(:)/, | ||
}); | ||
}()); | ||
})(); | ||
return numeral; | ||
})); |
{ | ||
"name": "numeral", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Format and manipulate numbers.", | ||
@@ -34,3 +34,2 @@ "homepage": "http://numeraljs.com", | ||
"grunt": "latest", | ||
"grunt-contrib-concat": "1.0.1", | ||
"grunt-contrib-jshint": "latest", | ||
@@ -37,0 +36,0 @@ "grunt-contrib-nodeunit": "1.0.0", |
@@ -18,5 +18,9 @@ # [Numeral.js](http://numeraljs.com/) | ||
#CDNJS | ||
[![CDNJS](https://img.shields.io/cdnjs/v/numeral.js.svg)](https://cdnjs.com/libraries/numeral.js) | ||
# Contributing | ||
#### Important: Please create your branch from and submit pull requests to the `develop` branch. | ||
#### Important: Please create your branch from and submit pull requests to the `develop` branch. All pull requests must include the appropriate tests. | ||
@@ -35,3 +39,3 @@ 1. Fork the library | ||
7. When all your tests are passing, run `grunt build` to minify all files | ||
7. When all your tests are passing, run `grunt dist` to compile and minify all files | ||
@@ -41,2 +45,7 @@ 8. Submit a pull request to the `develop` branch. | ||
### Formats | ||
Formats now exist in their own files and act more or less as plugins. Check out the [bytes format](https://github.com/adamwdraper/Numeral-js/blob/master/src/formats/bytes.js) for an example of how to create one. | ||
### Locales | ||
@@ -53,2 +62,6 @@ | ||
### 2.0.2 | ||
Bug fix: Updated module definitions | ||
### 2.0.1 | ||
@@ -55,0 +68,0 @@ |
@@ -1,9 +0,15 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : bytes | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'), | ||
decimal = { | ||
// numeral.js format configuration | ||
// format : bytes | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
var decimal = { | ||
base: 1000, | ||
@@ -78,2 +84,2 @@ suffixes: ['B', 'KB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB'] | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : currency | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js format configuration | ||
// format : currency | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('format', 'currency', { | ||
@@ -56,2 +61,2 @@ regexps: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : exponential | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js format configuration | ||
// format : exponential | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('format', 'exponential', { | ||
@@ -41,2 +46,2 @@ regexps: { | ||
}); | ||
}()); | ||
})); |
@@ -1,18 +0,14 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : ordinal | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js format configuration | ||
// format : ordinal | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
// get numeral from environment | ||
if (typeof window !== 'undefined' && this.numeral) { | ||
// Browser | ||
numeral = this.numeral; | ||
} else if (typeof module !== 'undefined' && module.exports) { | ||
// Node | ||
numeral = require('../numeral'); | ||
(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) { | ||
numeral.register('format', 'ordinal', { | ||
@@ -37,2 +33,2 @@ regexps: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : percentage | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js format configuration | ||
// format : percentage | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('format', 'percentage', { | ||
@@ -41,2 +46,2 @@ regexps: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js format configuration | ||
* format : time | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js format configuration | ||
// format : time | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('format', 'time', { | ||
@@ -42,2 +47,2 @@ regexps: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : belgium-dutch (be-nl) | ||
* author : Dieter Luypaert : https://github.com/moeriki | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : belgium-dutch (be-nl) | ||
// author : Dieter Luypaert : https://github.com/moeriki | ||
(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) { | ||
numeral.register('locale', 'be-nl', { | ||
@@ -22,3 +27,3 @@ delimiters: { | ||
var remainder = number % 100; | ||
return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de'; | ||
@@ -30,2 +35,2 @@ }, | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Bulgarian | ||
* author : Don Vince : https://github.com/donvince/ | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : Bulgarian | ||
// author : Don Vince : https://github.com/donvince/ | ||
(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) { | ||
numeral.register('locale', 'bg', { | ||
@@ -35,2 +40,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : simplified chinese (chs) | ||
* author : badplum : https://github.com/badplum | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : simplified chinese (chs) | ||
// author : badplum : https://github.com/badplum | ||
(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) { | ||
numeral.register('locale', 'chs', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : czech (cs) | ||
* author : Anatoli Papirovski : https://github.com/apapirovski | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : czech (cs) | ||
// author : Anatoli Papirovski : https://github.com/apapirovski | ||
(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) { | ||
numeral.register('locale', 'cs', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : danish denmark (dk) | ||
* author : Michael Storgaard : https://github.com/mstorgaard | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : danish denmark (dk) | ||
// author : Michael Storgaard : https://github.com/mstorgaard | ||
(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) { | ||
numeral.register('locale', 'da-dk', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : German in Switzerland (de-ch) | ||
* author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky) | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : German in Switzerland (de-ch) | ||
// author : Michael Piefel : https://github.com/piefel (based on work from Marco Krage : https://github.com/sinky) | ||
(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) { | ||
numeral.register('locale', 'de-ch', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium | ||
* author : Marco Krage : https://github.com/sinky | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium | ||
// author : Marco Krage : https://github.com/sinky | ||
(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) { | ||
numeral.register('locale', 'de', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : English Australia | ||
* author : Don Vince : https://github.com/donvince/ | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : English Australia | ||
// author : Don Vince : https://github.com/donvince/ | ||
(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) { | ||
numeral.register('locale', 'en-au', { | ||
@@ -31,2 +36,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : english united kingdom (uk) | ||
* author : Dan Ristic : https://github.com/dristic | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : english united kingdom (uk) | ||
// author : Dan Ristic : https://github.com/dristic | ||
(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) { | ||
numeral.register('locale', 'en-gb', { | ||
@@ -31,2 +36,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : english south africa (uk) | ||
* author : Etienne Boshoff : etienne@zailab.com | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : english south africa (uk) | ||
// author : Etienne Boshoff : etienne@zailab.com | ||
(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) { | ||
numeral.register('locale', 'en-za', { | ||
@@ -31,2 +36,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : spanish Spain | ||
* author : Hernan Garcia : https://github.com/hgarcia | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : spanish Spain | ||
// author : Hernan Garcia : https://github.com/hgarcia | ||
(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) { | ||
numeral.register('locale', 'es-es', { | ||
@@ -32,2 +37,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : spanish | ||
* author : Hernan Garcia : https://github.com/hgarcia | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : spanish | ||
// author : Hernan Garcia : https://github.com/hgarcia | ||
(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) { | ||
numeral.register('locale', 'es', { | ||
@@ -32,2 +37,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,12 +0,15 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Estonian | ||
* author : Illimar Tambek : https://github.com/ragulka | ||
* | ||
* Note: in Estonian, abbreviations are always separated | ||
* from numbers with a space | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : Estonian | ||
// author : Illimar Tambek : https://github.com/ragulka | ||
// Note: in Estonian, abbreviations are always separated from numbers with a space | ||
(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) { | ||
numeral.register('locale', 'et', { | ||
@@ -30,2 +33,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Finnish | ||
* author : Sami Saada : https://github.com/samitheberber | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : Finnish | ||
// author : Sami Saada : https://github.com/samitheberber | ||
(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) { | ||
numeral.register('locale', 'fi', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (Canada) (fr-ca) | ||
* author : Léo Renaud-Allaire : https://github.com/renaudleo | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : french (Canada) (fr-ca) | ||
// author : Léo Renaud-Allaire : https://github.com/renaudleo | ||
(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) { | ||
numeral.register('locale', 'fr-ca', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (fr-ch) | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : french (fr-ch) | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('locale', 'fr-ch', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : french (fr) | ||
* author : Adam Draper : https://github.com/adamwdraper | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : french (fr) | ||
// author : Adam Draper : https://github.com/adamwdraper | ||
(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) { | ||
numeral.register('locale', 'fr', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Hungarian (hu) | ||
* author : Peter Bakondy : https://github.com/pbakondy | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : Hungarian (hu) | ||
// author : Peter Bakondy : https://github.com/pbakondy | ||
(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) { | ||
numeral.register('locale', 'hu', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : italian Italy (it) | ||
* author : Giacomo Trombi : http://cinquepunti.it | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : italian Italy (it) | ||
// author : Giacomo Trombi : http://cinquepunti.it | ||
(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) { | ||
numeral.register('locale', 'it', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : japanese | ||
* author : teppeis : https://github.com/teppeis | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : japanese | ||
// author : teppeis : https://github.com/teppeis | ||
(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) { | ||
numeral.register('locale', 'ja', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : Latvian (lv) | ||
* author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : Latvian (lv) | ||
// author : Lauris Bukšis-Haberkorns : https://github.com/Lafriks | ||
(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) { | ||
numeral.register('locale', 'lv', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : netherlands-dutch (nl-nl) | ||
* author : Dave Clayton : https://github.com/davedx | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : netherlands-dutch (nl-nl) | ||
// author : Dave Clayton : https://github.com/davedx | ||
(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) { | ||
numeral.register('locale', 'nl-nl', { | ||
@@ -28,2 +33,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : norwegian (bokmål) | ||
* author : Ove Andersen : https://github.com/azzlack | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : norwegian (bokmål) | ||
// author : Ove Andersen : https://github.com/azzlack | ||
(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) { | ||
numeral.register('locale', 'no', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : polish (pl) | ||
* author : Dominik Bulaj : https://github.com/dominikbulaj | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : polish (pl) | ||
// author : Dominik Bulaj : https://github.com/dominikbulaj | ||
(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) { | ||
numeral.register('locale', 'pl', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : portuguese brazil (pt-br) | ||
* author : Ramiro Varandas Jr : https://github.com/ramirovjr | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : portuguese brazil (pt-br) | ||
// author : Ramiro Varandas Jr : https://github.com/ramirovjr | ||
(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) { | ||
numeral.register('locale', 'pt-br', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : portuguese (pt-pt) | ||
* author : Diogo Resende : https://github.com/dresende | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : portuguese (pt-pt) | ||
// author : Diogo Resende : https://github.com/dresende | ||
(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) { | ||
numeral.register('locale', 'pt-pt', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
// numeral.js locale configuration | ||
// locale : Russian for the Ukraine (ru-ua) | ||
// author : Anatoli Papirovski : https://github.com/apapirovski | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
(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) { | ||
numeral.register('locale', 'ru-ua', { | ||
@@ -28,2 +35,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : russian (ru) | ||
* author : Anatoli Papirovski : https://github.com/apapirovski | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : russian (ru) | ||
// author : Anatoli Papirovski : https://github.com/apapirovski | ||
(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) { | ||
numeral.register('locale', 'ru', { | ||
@@ -30,2 +35,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,14 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : slovak (sk) | ||
* author : Ahmed Al Hafoudh : http://www.freevision.sk | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : slovak (sk) | ||
// author : Ahmed Al Hafoudh : http://www.freevision.sk | ||
(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) { | ||
numeral.register('locale', 'sk', { | ||
@@ -27,2 +32,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,16 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : thai (th) | ||
* author : Sathit Jittanupat : https://github.com/jojosati | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
// numeral.js locale configuration | ||
// locale : thai (th) | ||
// author : Sathit Jittanupat : https://github.com/jojosati | ||
(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) { | ||
numeral.register('locale', 'th', { | ||
@@ -27,2 +34,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
@@ -1,9 +0,15 @@ | ||
/* | ||
* numeral.js locale configuration | ||
* locale : turkish (tr) | ||
* author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK | ||
*/ | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'), | ||
suffixes = { | ||
// numeral.js locale configuration | ||
// locale : turkish (tr) | ||
// author : Ecmel Ercan : https://github.com/ecmel, Erhan Gundogan : https://github.com/erhangundogan, Burak Yiğit Kaya: https://github.com/BYK | ||
(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) { | ||
var suffixes = { | ||
1: '\'inci', | ||
@@ -60,2 +66,2 @@ 5: '\'inci', | ||
}); | ||
}()); | ||
})); |
// numeral.js locale configuration | ||
// locale : Ukrainian for the Ukraine (uk-ua) | ||
// author : Michael Piefel : https://github.com/piefel (with help from Tetyana Kuzmenko) | ||
(function () { | ||
var numeral = typeof window !== 'undefined' && window.numeral ? window.numeral : require('../numeral'); | ||
(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) { | ||
numeral.register('locale', 'uk-ua', { | ||
@@ -28,2 +35,2 @@ delimiters: { | ||
}); | ||
}()); | ||
})); |
/*! @preserve | ||
* numeral.js | ||
* version : 2.0.1 | ||
* version : 2.0.2 | ||
* author : Adam Draper | ||
@@ -9,3 +9,11 @@ * license : MIT | ||
(function() { | ||
(function (global, factory) { | ||
if (typeof define === 'function' && define.amd) { | ||
define(factory); | ||
} else if (typeof module === 'object' && module.exports) { | ||
module.exports = factory(); | ||
} else { | ||
global.numeral = factory(); | ||
} | ||
}(this, function () { | ||
/************************************ | ||
@@ -17,3 +25,3 @@ Variables | ||
_, | ||
VERSION = '2.0.1', | ||
VERSION = '2.0.2', | ||
formats = {}, | ||
@@ -372,9 +380,7 @@ locales = {}, | ||
numeral.locale = function(key) { | ||
if (!key) { | ||
return options.currentLocale; | ||
if (key) { | ||
options.currentLocale = key.toLowerCase(); | ||
} | ||
options.currentLocale = key.toLowerCase(); | ||
return numeral; | ||
return options.currentLocale; | ||
}; | ||
@@ -425,2 +431,4 @@ | ||
this[type + 's'][name] = format; | ||
return format; | ||
}; | ||
@@ -644,26 +652,3 @@ | ||
/************************************ | ||
Exposing Numeral | ||
************************************/ | ||
// CommonJS module is defined | ||
if (typeof module !== 'undefined' && module.exports) { | ||
module.exports = numeral; | ||
} | ||
/*global ender:false */ | ||
if (typeof ender === 'undefined') { | ||
// here, `this` means `window` in the browser, or `global` on the server | ||
// add `numeral` as a global object via a string identifier, | ||
// for Closure Compiler 'advanced' mode | ||
this['numeral'] = numeral; | ||
} | ||
/*global define:false */ | ||
if (typeof define === 'function' && define.amd) { | ||
define([], function() { | ||
return numeral; | ||
}); | ||
} | ||
}).call(this); | ||
return numeral; | ||
})); |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/bytes'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/currency'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/exponential'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/ordinal'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/percentage'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var format = require('../../src/formats/time'); | ||
var numeral = require('../../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -7,0 +6,0 @@ } |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/be-nl'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/bg'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/chs'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/cs'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/da-dk'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/de-ch'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/de'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/en-au'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/en-gb'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/en-za'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/es-es'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/es'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/et'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/fi'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/fr-ca'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/fr-ch'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/fr'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/hu'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/it'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/ja'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/lv'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/nl-nl'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/no'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/pl'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/pt-br'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/pt-pt'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/ru-ua'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/ru'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/sk'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/th'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/tr'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../../src/numeral'); | ||
var numeral = require('../../numeral'); | ||
var locales = require('../../locales'); | ||
var expect = require('chai').expect; | ||
var locale = require('../../src/locales/uk-ua'); | ||
} | ||
@@ -7,0 +7,0 @@ |
// Node | ||
if (typeof module !== 'undefined' && module.exports) { | ||
var numeral = require('../src/numeral'); | ||
var numeral = require('../numeral'); | ||
var expect = require('chai').expect; | ||
@@ -5,0 +5,0 @@ } |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 3 instances in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 4 instances in 1 package
17
128
34
288
0
280756
7065