This commit is contained in:
Juan Ferrer Toribio 2016-09-27 14:47:19 +02:00
parent 99fc0f9615
commit 8369d48584
3 changed files with 6 additions and 11 deletions

1
.gitignore vendored
View File

@ -1,2 +1 @@
node_modules
hedera-web.js

12
app.js
View File

@ -25,27 +25,27 @@ function loadLocale (lang, cb)
switch (lang)
{
case 'ca':
require.ensure ([], function (){
require ([], function (){
cb (require.context ('locale/ca/js')); });
break;
case 'es':
require.ensure ([], function () {
require ([], function () {
cb (require.context ('locale/es/js')); });
break;
case 'fr':
require.ensure ([], function () {
require ([], function () {
cb (require.context ('locale/fr/js')); });
break;
case 'mn':
require.ensure ([], function () {
require ([], function () {
cb (require.context ('locale/mn/js')); });
break;
case 'pt':
require.ensure ([], function () {
require ([], function () {
cb (require.context ('locale/pt/js')); });
break;
default:
require.ensure ([], function () {
require ([], function () {
cb (require.context ('locale/en/js')); });
}
}

View File

@ -1,4 +0,0 @@
#!/bin/bash
export NODE_PATH="/usr/local/lib/node_modules" &&
webpack --progress --colors --watch