Skip to content

Commit

Permalink
Locale don't work with pt-br.
Browse files Browse the repository at this point in the history
  • Loading branch information
rottmann committed Dec 14, 2015
1 parent 7dac7ad commit 20ef1d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion template/locales/locale.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ define([
'./locales/zh.js',
'./locales/zh_cn.js'
], function() {
var langId = (navigator.language || navigator.userLanguage).toLowerCase();
var langId = (navigator.language || navigator.userLanguage).toLowerCase().replace('-', '_');
var language = langId.substr(0, 2);
var locales = {};

Expand Down

0 comments on commit 20ef1d8

Please sign in to comment.