Skip to content

Commit

Permalink
Merge pull request #126 from adamwdraper/develop
Browse files Browse the repository at this point in the history
Develop 1.5.3
  • Loading branch information
adamwdraper committed Dec 25, 2013
2 parents c3556ec + 24610f8 commit f97f14b
Show file tree
Hide file tree
Showing 17 changed files with 592 additions and 40 deletions.
29 changes: 27 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,29 @@
node_modules/
# --------------------
# OSX Files
# --------------------
.DS_Store
.AppleDouble
.LSOverride
Icon
._*
.Spotlight-V100
.Trashes

# --------------------
# IntelliJ Files
# --------------------
*.iml
*.ipr
*.iws
.idea/

# --------------------
# Sublime Files
# --------------------
*.sublime-project
*.sublime-workspace
*.sublime-workspace

# --------------------
# App Files
# --------------------
node_modules/
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@ See [the english unit tests](https://github.com/adamwdraper/Numeral-js/blob/mast

# Changelog

### 1.5.3

Added currency symbol to optionally appear before negative sign / open paren

Added float precision math support

Added specification of abbreviation in thousands, millions, billions

### 1.5.2

Bug fix: Unformat should pass through if given a number
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "numeral",
"repo": "adamwdraper/Numeral-js",
"version": "1.5.2",
"version": "1.5.3",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "numeral",
"repo": "adamwdraper/Numeral-js",
"version": "1.5.2",
"version": "1.5.3",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
73 changes: 73 additions & 0 deletions languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,41 @@
this.numeral.language('be-nl', language);
}
}());
/*!
* numeral.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
*/
(function () {
var language = {
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: '千',
million: '百万',
billion: '十亿',
trillion: '兆'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: '¥'
}
};

// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('chs', language);
}
}());

/*!
* numeral.js language configuration
* language : czech (cs)
Expand Down Expand Up @@ -288,6 +323,44 @@
}
}());

/*!
* numeral.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
(function () {
var language = {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: ' tuh',
million: ' mln',
billion: ' mld',
trillion: ' trl'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: '€'
}
};

// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('et', language);
}
}());

/*!
* numeral.js language configuration
* language : Finnish
Expand Down
34 changes: 34 additions & 0 deletions languages/chs.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
/*!
* numeral.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
*/
(function () {
var language = {
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: '千',
million: '百万',
billion: '十亿',
trillion: '兆'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: '¥'
}
};

// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('chs', language);
}
}());
37 changes: 37 additions & 0 deletions languages/et.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
/*!
* numeral.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
(function () {
var language = {
delimiters: {
thousands: ' ',
decimal: ','
},
abbreviations: {
thousand: ' tuh',
million: ' mln',
billion: ' mld',
trillion: ' trl'
},
ordinal: function (number) {
return '.';
},
currency: {
symbol: '€'
}
};

// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numeral && this.numeral.language) {
this.numeral.language('et', language);
}
}());
15 changes: 14 additions & 1 deletion min/languages.min.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
* language : belgium-dutch (be-nl)
* author : Dieter Luypaert : https://github.com/moeriki
*/
!function(){var a={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:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("be-nl",a)}(),/*!
!function(){var a={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:"€ "}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("be-nl",a)}(),/*!
* numeral.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
*/
function(){var a={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("chs",a)}(),/*!
* numeral.js language configuration
* language : czech (cs)
* author : Anatoli Papirovski : https://github.com/apapirovski
Expand Down Expand Up @@ -39,6 +44,14 @@ function(){var a={delimiters:{thousands:".",decimal:","},abbreviations:{thousand
* author : Hernan Garcia : https://github.com/hgarcia
*/
function(){var a={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:"$"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("es",a)}(),/*!
* numeral.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
function(){var a={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("et",a)}(),/*!
* numeral.js language configuration
* language : Finnish
* author : Sami Saada : https://github.com/samitheberber
Expand Down
6 changes: 6 additions & 0 deletions min/languages/chs.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* numeral.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
*/
!function(){var a={delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"千",million:"百万",billion:"十亿",trillion:"兆"},ordinal:function(){return"."},currency:{symbol:"¥"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("chs",a)}();
9 changes: 9 additions & 0 deletions min/languages/et.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
/*!
* numeral.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
*
* Note: in Estonian, abbreviations are always separated
* from numbers with a space
*/
!function(){var a={delimiters:{thousands:" ",decimal:","},abbreviations:{thousand:" tuh",million:" mln",billion:" mld",trillion:" trl"},ordinal:function(){return"."},currency:{symbol:"€"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numeral&&this.numeral.language&&this.numeral.language("et",a)}();
Loading

0 comments on commit f97f14b

Please sign in to comment.