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

Setting language #46

Open
alvaro-octal opened this issue Apr 3, 2016 · 2 comments
Open

Setting language #46

alvaro-octal opened this issue Apr 3, 2016 · 2 comments

Comments

@alvaro-octal
Copy link
Contributor

Hi,

I was taking a look at the code trying to figure out how could I change the API language (it consist on pass a language parameter with every request), could you add it?.

node that, this works fine.

mdb.searchMovie({ query: 'Alien', language: 'es' }, function(err, res){
    console.log(res);
});

but maybe something like this, would be a bit more clean.

var mdb = require('moviedb')(key, lang)

thanks in advance.

@impronunciable
Copy link
Owner

@Alvaroctal It will be interesting to pass a setting for default params. I'll take a look about it.

Thanks for adding the issue.

@Hedronmx
Copy link

Hedronmx commented Jul 1, 2017

Anything on this? I would love to set a global language param

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