Skip to content

Commit

Permalink
Release 1.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
BenjaminVanRyseghem committed Jul 2, 2015
1 parent 0740001 commit a2c15b1
Show file tree
Hide file tree
Showing 10 changed files with 81 additions and 9 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 1.5.0

- Adds support for Hebrew (he-LI). Thanks to @eli-zehavi

### 1.4.0

- #62 using languages in node. Thanks @alexkwolfe
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.4.0",
"version": "1.5.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.4.0",
"version": "1.5.0",
"description": "Format and manipulate numbers.",
"keywords": [
"numeral",
Expand Down
47 changes: 47 additions & 0 deletions dist/languages.js
Original file line number Diff line number Diff line change
Expand Up @@ -740,6 +740,53 @@
}
}.call(typeof window === 'undefined' ? this : window));

/*!
* numbro.js language configuration
* language : Hebrew
* locale : IL
* author : Eli Zehavi : https://github.com/eli-zehavi
*/
(function () {
'use strict';

var language = {
langLocaleCode: 'he-IL',
delimiters: {
thousands: ',',
decimal: '.'
},
abbreviations: {
thousand: 'אלף',
million: 'מליון',
billion: 'בליון',
trillion: 'טריליון'
},
currency: {
symbol: '₪',
position: 'prefix'
},
defaults: {
currencyFormat: ',0000 a'
},
formats: {
fourDigits: '0000 a',
fullWithTwoDecimals: '₪ ,0.00',
fullWithTwoDecimalsNoCurrency: ',0.00',
fullWithNoDecimals: '₪ ,0'
}
};

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


/*!
* numbro.js language configuration
* language : Hungarian
Expand Down
6 changes: 6 additions & 0 deletions dist/languages.min.js

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

7 changes: 7 additions & 0 deletions dist/languages/he-IL.min.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/*!
* numbro.js language configuration
* language : Hebrew
* locale : IL
* author : Eli Zehavi : https://github.com/eli-zehavi
*/
!function(){"use strict";var a={langLocaleCode:"he-IL",delimiters:{thousands:",",decimal:"."},abbreviations:{thousand:"אלף",million:"מליון",billion:"בליון",trillion:"טריליון"},currency:{symbol:"₪",position:"prefix"},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(a.langLocaleCode,a)}();
12 changes: 10 additions & 2 deletions dist/numbro.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* numbro.js
* version : 1.4.0
* version : 1.5.0
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
Expand All @@ -14,7 +14,7 @@
************************************/

var numbro,
VERSION = '1.4.0',
VERSION = '1.5.0',
// internal storage for language config files
languages = {},
currentLanguage = 'en-US',
Expand Down Expand Up @@ -961,6 +961,14 @@
// CommonJS module is defined
if (hasModule) {
module.exports = numbro;

// Load all languages
var fs = require('fs'),
path = require('path');
var langFiles = fs.readdirSync(path.join(__dirname, 'languages'));
langFiles.forEach(function (langFile) {
numbro.language(path.basename(langFile, '.js'), require(path.join(__dirname, 'languages', langFile)));
});
}

/*global ender:false */
Expand Down
4 changes: 2 additions & 2 deletions dist/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.4.0
* version : 1.5.0
* author : Företagsplatsen AB
* license : MIT
* http://www.foretagsplatsen.se
Expand All @@ -14,7 +14,7 @@
************************************/

var numbro,
VERSION = '1.4.0',
VERSION = '1.5.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.4.0",
"version": "1.5.0",
"description": "Format and manipulate numbers.",
"homepage": "http://numbrojs.com",
"author": {
Expand Down

0 comments on commit a2c15b1

Please sign in to comment.