frontend: fix bug in locale detection
Merge pull request #331 from plietar/stable

frontend: fix bug in locale detection