Skip to content

Commit cd9750d

Browse files
authored
Merge pull request #484 from adamwdraper/develop
2.0.5
2 parents a7a2ded + f1ec504 commit cd9750d

File tree

27 files changed

+524
-66
lines changed

27 files changed

+524
-66
lines changed

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,16 @@ See [the english unit tests](https://github.com/adamwdraper/Numeral-js/blob/mast
5656

5757
# Changelog
5858

59+
### 2.0.5
60+
61+
Bug fix: Multi letter currency symbols and spacing
62+
63+
Added: Formatting of numbers with leading zeros
64+
65+
New format: Basic Point
66+
67+
Option: Added `scalePercentBy100` (default: true) option to turn on/off scaling percentages
68+
5969
### 2.0.4
6070

6171
Bug fix: Incorrect abbreviations for values rounded up [#187](https://github.com/adamwdraper/Numeral-js/issues/187)

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "numeral",
33
"repo": "adamwdraper/Numeral-js",
4-
"version": "2.0.4",
4+
"version": "2.0.5",
55
"description": "Format and manipulate numbers.",
66
"keywords": [
77
"numeral",

component.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "numeral",
33
"repo": "adamwdraper/Numeral-js",
4-
"version": "2.0.4",
4+
"version": "2.0.5",
55
"description": "Format and manipulate numbers.",
66
"keywords": [
77
"numeral",

locales.js

Lines changed: 48 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*! @preserve
22
* numeral.js
3-
* locales : 2.0.4
3+
* locales : 2.0.5
44
* license : MIT
55
* http://adamwdraper.github.com/Numeral-js/
66
*/
@@ -15,30 +15,6 @@
1515
}
1616
}(this, function (numeral) {
1717

18-
(function() {
19-
numeral.register('locale', 'be-nl', {
20-
delimiters: {
21-
thousands: ' ',
22-
decimal : ','
23-
},
24-
abbreviations: {
25-
thousand : 'k',
26-
million : ' mln',
27-
billion : ' mld',
28-
trillion : ' bln'
29-
},
30-
ordinal : function (number) {
31-
var remainder = number % 100;
32-
33-
return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
34-
},
35-
currency: {
36-
symbol: '€ '
37-
}
38-
});
39-
})();
40-
41-
4218
(function() {
4319
numeral.register('locale', 'bg', {
4420
delimiters: {
@@ -510,6 +486,30 @@
510486
})();
511487

512488

489+
(function() {
490+
numeral.register('locale', 'nl-be', {
491+
delimiters: {
492+
thousands: ' ',
493+
decimal : ','
494+
},
495+
abbreviations: {
496+
thousand : 'k',
497+
million : ' mln',
498+
billion : ' mld',
499+
trillion : ' bln'
500+
},
501+
ordinal : function (number) {
502+
var remainder = number % 100;
503+
504+
return (number !== 0 && remainder <= 1 || remainder === 8 || remainder >= 20) ? 'ste' : 'de';
505+
},
506+
currency: {
507+
symbol: '€ '
508+
}
509+
});
510+
})();
511+
512+
513513
(function() {
514514
numeral.register('locale', 'nl-nl', {
515515
delimiters: {
@@ -820,4 +820,27 @@
820820
})();
821821

822822

823+
(function() {
824+
825+
numeral.register('locale', 'vi', {
826+
delimiters: {
827+
thousands: '.',
828+
decimal: ','
829+
},
830+
abbreviations: {
831+
thousand: ' nghìn',
832+
million: ' triệu',
833+
billion: ' tỷ',
834+
trillion: ' nghìn tỷ'
835+
},
836+
ordinal: function () {
837+
return '.';
838+
},
839+
currency: {
840+
symbol: '₫'
841+
}
842+
});
843+
})();
844+
845+
823846
}));

locales/be-nl.js renamed to locales/nl-be.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
// numeral.js locale configuration
2-
// locale : belgium-dutch (be-nl)
2+
// locale : dutch-belgium (nl-be)
33
// author : Dieter Luypaert : https://github.com/moeriki
4+
// corrected : Olivier Godefroy : https://github.com/godefroyo
45

56
(function (global, factory) {
67
if (typeof define === 'function' && define.amd) {
@@ -11,7 +12,7 @@
1112
factory(global.numeral);
1213
}
1314
}(this, function (numeral) {
14-
numeral.register('locale', 'be-nl', {
15+
numeral.register('locale', 'nl-be', {
1516
delimiters: {
1617
thousands: ' ',
1718
decimal : ','

locales/vi.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// numeral.js locale configuration
2+
// locale : vietnam (vi)
3+
// author : Harry Nguyen : https://github.com/thaihoa311
4+
5+
(function (global, factory) {
6+
if (typeof define === 'function' && define.amd) {
7+
define(['../numeral'], factory);
8+
} else if (typeof module === 'object' && module.exports) {
9+
factory(require('../numeral'));
10+
} else {
11+
factory(global.numeral);
12+
}
13+
}(this, function (numeral) {
14+
15+
numeral.register('locale', 'vi', {
16+
delimiters: {
17+
thousands: '.',
18+
decimal: ','
19+
},
20+
abbreviations: {
21+
thousand: ' nghìn',
22+
million: ' triệu',
23+
billion: ' tỷ',
24+
trillion: ' nghìn tỷ'
25+
},
26+
ordinal: function () {
27+
return '.';
28+
},
29+
currency: {
30+
symbol: '₫'
31+
}
32+
});
33+
}));

min/locales.min.js

Lines changed: 5 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

min/locales/be-nl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

min/locales/nl-be.min.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

min/locales/nl-nl.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)