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

Offer to translate the page if the user's browser language setting is different to the page #9

Open
JasonThomasData opened this issue Mar 15, 2016 · 1 comment

Comments

@JasonThomasData
Copy link
Owner

Users may like to change their language.

Use case -
If on the '/ar/' page and the detected browser language is English, offer to translate.
If the user is on '/ar/' page and the detected language is Arabic, do nothing.
If the user is on '/en/' page and the detected language is Arabic, offer to translate.

@JasonThomasData
Copy link
Owner Author

I suggested this to SSI on Monday, July 4 and they thought this was a good idea.

I've also been digging around for a gem to detect the browser's default language in the request header. This is looking like a good option. https://github.com/iain/http_accept_language

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