Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when call onesky.locales() #1

Open
voznik opened this issue Oct 13, 2016 · 2 comments
Open

Error when call onesky.locales() #1

voznik opened this issue Oct 13, 2016 · 2 comments

Comments

@voznik
Copy link

voznik commented Oct 13, 2016

when I try to get separate translations files as in your 2nd example

'use strict';
// gulp
var gulp = require('gulp');
var onesky = require('gulp-onesky');
var oneskyOptions = {
  publicKey: 'myKey',
  secretKey: 'myKey',
  projectId: '184430',
  sourceFile: 'translation_en.json'
};
gulp.task('translate', function () {
  onesky(oneskyOptions)
  .pipe(gulp.dest('app/i18n'));
});


gulp.task('translate-more', function () {
  onesky.locales(oneskyOptions)
  .pipe(gulp.dest('app/i18n'));
});

I get Error:

path.js:7
    throw new TypeError('Path must be a string. Received ' + inspect(path));
    ^

TypeError: Path must be a string. Received undefined
    at assertPath (path.js:7:11)
    at Object.join (path.js:1213:7)
    at /home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/index.js:39:22
    at Array.forEach (native)
    at /home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/index.js:37:25
    at Request._callback (/home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/index.js:77:5)
    at Request.self.callback (/home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/node_modules/request/request.js:187:22)
    at emitTwo (events.js:100:13)
    at Request.emit (events.js:185:7)
    at Request.<anonymous> (/home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/node_modules/request/request.js:1048:10)
    at emitOne (events.js:90:13)
    at Request.emit (events.js:182:7)
    at IncomingMessage.<anonymous> (/home/voznik/workspace/crumzi-mobile/node_modules/gulp-onesky/node_modules/request/request.js:969:12)
    at emitNone (events.js:85:20)
    at IncomingMessage.emit (events.js:179:7)
    at endReadableNT (_stream_readable.js:913:12)
@faustlifes
Copy link

I got this error too!

@Tusko
Copy link

Tusko commented Oct 23, 2017

+++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants