location.search.match(/lang=([a-z]+)/) does return `['lang=fr', 'fr']` if it does match and thus does not found the language with the query parameter. This commit fixes this comportment