Skip to content

Commit

Permalink
Release 1.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminVanRyseghem committed Apr 21, 2015
1 parent 368c04d commit 6e832df
Show file tree
Hide file tree
Showing 32 changed files with 162 additions and 61 deletions.
20 changes: 12 additions & 8 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
### 1.1.0

- Adds `languages` to expose all registered languages. Thanks @NicolasPetton
- Adds support for filipino. Thanks @Graham42 and @mjmaix
- Adds support for farsi. Thanks @Graham42 and @neo13

### 1.0.5

- Improve release process. Thanks @Graham42
- Update the `README` file. Thanks @Graham42
- Add support for filipino. Thanks @Graham42 and @mjmaix
- Add support for farsi. Thanks @Graham42 and @neo13
- Improves release process. Thanks @Graham42
- Updates the `README` file. Thanks @Graham42
- Fixes Danish currency symbol. Thanks @Graham42 and @philostler
- Fices npm/bower dependencies. Thanks @BenjaminVanRyseghem
- Numeral-js leftovers clean up. Thanks @uniphil
- Update homepage url. Thanks @BenjaminVanRyseghem
- Rebase on Numeraljs to keep git history. Thanks @uniphil @Graham42
- Fixes npm/bower dependencies. Thanks @BenjaminVanRyseghem
- Cleans up Numeral-js leftovers. Thanks @uniphil
- Updates homepage url. Thanks @BenjaminVanRyseghem
- Rebases on Numeraljs to keep git history. Thanks @uniphil @Graham42

### 1.0.4

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": "numbro",
"repo": "foretagsplatsen/numbro",
"version": "1.0.5",
"version": "1.1.0",
"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": "numbro",
"repo": "foretagsplatsen/numbro",
"version": "1.0.5",
"version": "1.1.0",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
77 changes: 76 additions & 1 deletion dist/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
return '.';
},
currency: {
symbol: 'DKK',
symbol: 'kr',
position: 'postfix'
},
defaults: {
Expand All @@ -87,6 +87,7 @@
this.numbro.language('da-DK', language);
}
}());

/*!
* numbro.js language configuration
* language : German (de) – generally useful in Germany, Austria, Luxembourg, Belgium
Expand Down Expand Up @@ -371,6 +372,41 @@
}
}());

/*!
* numbro.js language configuration
* language : Farsi Iran
* author : neo13 : https://github.com/neo13
*/
(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.numbro && this.numbro.language) {
this.numbro.language('fa-IR', language);
}
}());

/*!
* numbro.js language configuration
* language : Finnish
Expand Down Expand Up @@ -416,6 +452,45 @@
}
}());

/*!
* numbro.js language configuration
* language : filipino philippines (ph)
* author : Michael Abadilla : https://github.com/mjmaix
*/
(function () {
var language = {
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: 'k',
million: 'm',
billion: 'b',
trillion: 't'
},
ordinal: function (number) {
var b = number % 10;
return (~~ (number % 100 / 10) === 1) ? 'th' :
(b === 1) ? 'st' :
(b === 2) ? 'nd' :
(b === 3) ? 'rd' : 'th';
},
currency: {
symbol: '₱'
}
};

// Node
if (typeof module !== 'undefined' && module.exports) {
module.exports = language;
}
// Browser
if (typeof window !== 'undefined' && this.numbro && this.numbro.language) {
this.numbro.language('fil-PH', language);
}
}());

/*!
* numbro.js language configuration
* language : french (Canada) (fr-CA)
Expand Down
54 changes: 32 additions & 22 deletions dist/min/languages.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/min/languages/da-DK.min.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
/*!
* numbro.js language configuration
* language : danish denmark (dk)
* author : Michael Storgaard : https://github.com/mstorgaard
*/
!function(){var a={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"DKK",position:"postfix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numbro&&this.numbro.language&&this.numbro.language("da-DK",a)}();
!function(){var a={delimiters:{thousands:".",decimal:","},abbreviations:{thousand:"k",million:"mio",billion:"mia",trillion:"b"},ordinal:function(a){return"."},currency:{symbol:"kr",position:"postfix"},defaults:{currencyFormat:",0000 a"},formats:{fourDigits:"0000 a",fullWithTwoDecimals:",0.00 $",fullWithTwoDecimalsNoCurrency:",0.00",fullWithNoDecimals:",0 $"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numbro&&this.numbro.language&&this.numbro.language("da-DK",a)}();
2 changes: 1 addition & 1 deletion dist/min/languages/de-DE.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/de-ch.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/en-GB.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/es-AR.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/es-ES.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/et-EE.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : Estonian
* author : Illimar Tambek : https://github.com/ragulka
Expand Down
6 changes: 6 additions & 0 deletions dist/min/languages/fa-IR.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* numbro.js language configuration
* language : Farsi Iran
* author : neo13 : https://github.com/neo13
*/
!function(){var a={delimiters:{thousands:"،",decimal:"."},abbreviations:{thousand:"هزار",million:"میلیون",billion:"میلیارد",trillion:"تریلیون"},ordinal:function(a){return"ام"},currency:{symbol:"﷼"}};"undefined"!=typeof module&&module.exports&&(module.exports=a),"undefined"!=typeof window&&this.numbro&&this.numbro.language&&this.numbro.language("fa-IR",a)}();
2 changes: 1 addition & 1 deletion dist/min/languages/fi-FI.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : Finnish
* author : Sami Saada : https://github.com/samitheberber
Expand Down
6 changes: 6 additions & 0 deletions dist/min/languages/fil-PH.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
/*!
* numbro.js language configuration
* language : filipino philippines (ph)
* author : Michael Abadilla : https://github.com/mjmaix
*/
!function(){var a={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=a),"undefined"!=typeof window&&this.numbro&&this.numbro.language&&this.numbro.language("fil-PH",a)}();
2 changes: 1 addition & 1 deletion dist/min/languages/fr-CH.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : french (fr-ch)
* author : Adam Draper : https://github.com/adamwdraper
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/fr-FR.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : french (fr)
* author : Adam Draper : https://github.com/adamwdraper
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/it-IT.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : italian Italy (it)
* author : Giacomo Trombi : http://cinquepunti.it
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/ja-JP.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : japanese
* author : teppeis : https://github.com/teppeis
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/nb-NO.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : norwegian
* author : Benjamin Van Ryseghem
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/nl-BE.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/nl-NL.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/pl-PL.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : polish (pl)
* author : Dominik Bulaj : https://github.com/dominikbulaj
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/pt-BR.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/pt-PT.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : portuguese (pt-pt)
* author : Diogo Resende : https://github.com/dresende
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/ru-RU.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : russian (ru)
* author : Anatoli Papirovski : https://github.com/apapirovski
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/th-TH.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : thai (th)
* author : Sathit Jittanupat : https://github.com/jojosati
Expand Down
2 changes: 1 addition & 1 deletion dist/min/languages/tr-TR.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/min/languages/zh-CN.min.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*!
/*!
* numbro.js language configuration
* language : simplified chinese
* author : badplum : https://github.com/badplum
Expand Down
4 changes: 2 additions & 2 deletions dist/min/numbro.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions numbro.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* numbro.js
* version : 1.0.5
* version : 1.1.0
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
Expand All @@ -13,7 +13,7 @@
************************************/

var numbro,
VERSION = '1.0.5',
VERSION = '1.1.0',
// internal storage for language config files
languages = {},
currentLanguage = 'en-US',
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "numbro",
"version": "1.0.5",
"version": "1.1.0",
"description": "Format and manipulate numbers.",
"homepage": "http://numbrojs.com",
"author": {
Expand Down

0 comments on commit 6e832df

Please sign in to comment.