Skip to content

Commit

Permalink
Load all available i18n JSON files
Browse files Browse the repository at this point in the history
  • Loading branch information
manicki committed Jun 16, 2016
1 parent 9c15e1c commit a22d43f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions js/app/Messages.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
'use strict';

// Load all i18n.json files available
require( '../../i18n/**/i18n.json', { mode: 'expand' } );

var Polyglot = require( 'node-polyglot' ),
i18n;

Expand Down
9 changes: 5 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
"description": "",
"main": "js/main.js",
"scripts": {
"build": "browserify -t hbsfy js/main.js | uglifyjs -c > js/bundle.min.js",
"build-test": "browserify -t hbsfy tests/tests.js > tests/tests.bundle.js",
"watch": "watchify -t hbsfy js/main.js -o js/bundle.min.js",
"watch-test": "node_modules/.bin/watchify -t hbsfy tests/tests.js -o tests/tests.bundle.js"
"build": "browserify -t hbsfy -t require-globify js/main.js | uglifyjs -c > js/bundle.min.js",
"build-test": "browserify -t hbsfy -t require-globify tests/tests.js > tests/tests.bundle.js",
"watch": "watchify -t hbsfy -t require-globify js/main.js -o js/bundle.min.js",
"watch-test": "node_modules/.bin/watchify -t hbsfy -t require-globify tests/tests.js -o tests/tests.bundle.js"
},
"author": "",
"license": "GPL-2.0",
Expand All @@ -31,6 +31,7 @@
"justifiedGallery": "git+https://github.com/miromannino/Justified-Gallery.git#60d253d6963750db2507571612ae0c2d7c2f970d",
"node-polyglot": "^0.4.3",
"piwik": "^1.0.4",
"require-globify": "^1.3.0",
"scrollmagic": "^2.0.5",
"zeroclipboard": "^2.2.0"
}
Expand Down

0 comments on commit a22d43f

Please sign in to comment.