{"action":"opened","issue":{"url":"https://api.github.com/repos/gooy/aurelia-i18next-parser/issues/1","labels_url":"https://api.github.com/repos/gooy/aurelia-i18next-parser/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/gooy/aurelia-i18next-parser/issues/1/comments","events_url":"https://api.github.com/repos/gooy/aurelia-i18next-parser/issues/1/events","html_url":"https://github.com/gooy/aurelia-i18next-parser/issues/1","id":98479540,"number":1,"title":"Having issues running the tool","user":{"login":"jadrake75","id":3221886,"avatar_url":"https://avatars.githubusercontent.com/u/3221886?v=3","gravatar_id":"","url":"https://api.github.com/users/jadrake75","html_url":"https://github.com/jadrake75","followers_url":"https://api.github.com/users/jadrake75/followers","following_url":"https://api.github.com/users/jadrake75/following{/other_user}","gists_url":"https://api.github.com/users/jadrake75/gists{/gist_id}","starred_url":"https://api.github.com/users/jadrake75/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jadrake75/subscriptions","organizations_url":"https://api.github.com/users/jadrake75/orgs","repos_url":"https://api.github.com/users/jadrake75/repos","events_url":"https://api.github.com/users/jadrake75/events{/privacy}","received_events_url":"https://api.github.com/users/jadrake75/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-07-31T22:02:53Z","updated_at":"2015-07-31T22:02:53Z","closed_at":null,"body":"I am having an issue running this tool, and perhaps it is a mis-configuration.  First off, it appears you require the parsing of the routes, and assume they are in routes.js.  The scaffold (last time I checked) had these in app.js (this may have changed).  Here is the config I am using (and after installing a slew of other libraries, mainly \"npm install config\", \"npm install -g babel\", python 2.7, a newer version of nodeJS..... I can run the tool with the following config\r\n\r\nvar gulp = require('gulp');\r\nvar i18next = require('aurelia-i18next-parser');\r\nvar paths = require('../paths');\r\n\r\nconsole.log(i18next);\r\n\r\ngulp.task('i18n', function() {\r\n    gulp.src(paths.root + '**/*')\r\n        .pipe(i18next.i18next({\r\n            routesModuleId: \"app\",          //module to extract routes from\r\n            appPath: \"src\",                    //path to the aurelia application files relative from the gulpfile\r\n            locales: ['en', 'de'],             //translation files will be created for these\r\n            defaultLocale: 'en',               //this will be treated as the default locale, the extracted values will not be transformed for this locale\r\n            translation_attribute:\"i18n\",      //attribute that is used in the html to specify translation keys\r\n            functions:['t'],                   //function that is used in javascript to translate values\r\n            defaultNamespace:'translation'\r\n        }))\r\n        .pipe(gulp.dest(paths.locale));\r\n});\r\n\r\npaths is a file that just points root to \"<project-folder>/src\" and locale to \"<project-folder>/locale\"\r\n\r\nI changed the routes moduleID to \"app\".  Note in your example you had \"i18next\" as the pipe command, but I believe it would need to be \"i18next.i18next\" (ie. the module + function)\r\n\r\nwhen I run this target \"gulp i18n\" I see the following:\r\n\r\n\"C:\\Java\\JetBrains\\WebStorm 10.0.2\\bin\\runnerw.exe\" \"C:\\Program Files\\nodejs\\node.exe\" C:\\Users\\Jason\\AppData\\Roaming\\npm\\node_modules\\gulp\\bin\\gulp.js --color --gulpfile c:\\dev\\stamp-web-aurelia\\gulpfile.js i18n\r\npaths=c:\\dev\\stamp-web-aurelia\\ (this is project folder)\r\nWARNING: No configurations found in configuration directory:\r\nWARNING: c:\\dev\\stamp-web-aurelia\\config\r\nWARNING: See https://www.npmjs.org/package/config for more information.\r\n[17:55:31] Using gulpfile c:\\dev\\stamp-web-aurelia\\gulpfile.js\r\n[17:55:31] Starting 'i18n'...\r\n[17:55:31] Finished 'i18n' after 9.2 ms\r\nPotentially unhandled rejection [5] Error: Error loading \"app\" at file:c:/dev/stamp-web-aurelia/src/app.js\r\nError loading \"babel\" at file:c:/dev/stamp-web-aurelia/src/babel.js\r\nENOENT, open 'c:\\dev\\stamp-web-aurelia\\src\\babel.js'\r\n  at Error (native)\r\n\r\nI do not have a babel.js in my folder, so I assume it is looking for something or dynamically trying to invoke babel.\r\n\r\n"}}