thomaspark / flexboxfroggy

A game for learning CSS flexbox 🐸

Home Page:https://flexboxfroggy.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Detect language automatically according to browser preferences

Quenix opened this issue · comments

I've noticed that my main browser language is PT-BR but game instance is always loaded in english due to this validation:

messages.languageActive.hasOwnProperty(requestLang)

Because portuguese is added as pt-br and requestLang returns "pt".
Changing it through settings seems fine. I will create a fork to pull request this fix.

Just to link it with the PR, so that it shows that it's being worked upon 👍🏽 #182