JasonThomasData / DocLink

Web app (Rails) for refugees to find bulk-billing doctors nearby
0 stars 1 forks source link

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

Open JasonThomasData opened 8 years ago

JasonThomasData commented 8 years ago

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 commented 8 years ago

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