From de43148341f5c381a9a1409c4a1c2dbbb0c5f080 Mon Sep 17 00:00:00 2001 From: Hiroyasu Nishiyama Date: Wed, 30 May 2018 20:32:56 +0900 Subject: [PATCH] change current_locale to getCurrentLocale --- red/runtime/i18n.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/red/runtime/i18n.js b/red/runtime/i18n.js index 336a2c9a6..b34564f47 100644 --- a/red/runtime/i18n.js +++ b/red/runtime/i18n.js @@ -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; }