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

default local not working #10

Open
mojtaba-naseri opened this issue Apr 18, 2018 · 1 comment
Open

default local not working #10

mojtaba-naseri opened this issue Apr 18, 2018 · 1 comment

Comments

@mojtaba-naseri
Copy link

mojtaba-naseri commented Apr 18, 2018

hi

i use set_locale 2.4.0 with gettext 0.13.1 but default_locale in config or router not working and when i use localhost:4000 just showing en but my default_locale is ru

this is my source https://github.com/shahryarjb/ESOGTIPH

@mojtaba-naseri
Copy link
Author

i wrote a plug which changed accept_lange Before conn being sent to set_locale plug
my problem is solved

def call(conn, _params) do
conn = conn |> put_req_header("accept-language", "ru")
conn
end

but one question why cookie or config not work ?

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

1 participant