change current_locale to getCurrentLocale

pull/1743/head
Hiroyasu Nishiyama 2018-05-30 20:32:56 +09:00
parent 0ad54cc2d1
commit de43148341
1 changed files with 2 additions and 2 deletions

View File

@ -81,7 +81,7 @@ var MessageFileLoader = {
}
function current_locale() {
function getCurrentLocale() {
var env = process.env;
for (var name of ['LC_ALL', 'LC_MESSAGES', 'LANG']) {
if (name in env) {
@ -102,7 +102,7 @@ function init() {
},
fallbackLng: [defaultLang]
};
var lang = current_locale();
var lang = getCurrentLocale();
if (lang) {
opt.lng = lang;
}