diff --git a/src/init.js b/src/init.js index 5418a3b4f..69c40d39a 100644 --- a/src/init.js +++ b/src/init.js @@ -64,6 +64,9 @@ var translations = require('../locales/translations.json'); var obj = jar.get('scratchlanguage'); if (typeof obj === 'undefined') { obj = window.navigator.userLanguage || window.navigator.language; + if (['pt','pt-pt','PT','PT-PT'].indexOf(obj) !== -1) { + obj = 'pt-br'; // default Portuguese users to Brazilian Portuguese due to our user base. Added in 2.2.5. + } } if (typeof translations[obj] === 'undefined') { // Fall back on the split