Improve pricing visibility

This commit is contained in:
yflory
2019-08-23 16:19:45 +02:00
parent 74372ba5d4
commit c95db33157
5 changed files with 50 additions and 4 deletions

View File

@@ -26,7 +26,8 @@ var getLanguage = messages._getLanguage = function () {
var l = getBrowserLanguage();
// Edge returns 'fr-FR' --> transform it to 'fr' and check again
return map[l] ? l :
(map[l.split('-')[0]] ? l.split('-')[0] : 'en');
(map[l.split('-')[0]] ? l.split('-')[0] :
(map[l.split('_')[0]] ? l.split('_')[0] : 'en'));
};
var language = getLanguage();