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

Add setLocale #8

Closed
fiote opened this issue Apr 20, 2019 · 2 comments
Closed

Add setLocale #8

fiote opened this issue Apr 20, 2019 · 2 comments

Comments

@fiote
Copy link

fiote commented Apr 20, 2019

I post in multiple idioms on my page so I need to be able to select the language when requesting the feed. I updated my version of your package locally but it would be nice if you could add it to the base code. Here are the changes :)

line 17
private $locale = null;

line 80

    /**
     * @param $locale
     * @return $this
     */
    function setLocale($locale) {
        $this->locale = $locale;
        return $this;
    }

line 142

            if ($this->locale) {
                $query['query']['locale'] = $this->locale;
            }
@xmhafiz
Copy link
Owner

xmhafiz commented Apr 22, 2019

great, please create a pull request

@afiqiqmal
Copy link
Contributor

#10 Pull Request

@xmhafiz xmhafiz closed this as completed Oct 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants