From 84152e32967d828163a71212579a0366d1c895c7 Mon Sep 17 00:00:00 2001 From: Dmitriy Novash Date: Thu, 1 Oct 2020 11:32:11 +0300 Subject: [PATCH] Get lang name in more right way --- compiler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler.php b/compiler.php index 25d1888..ebc4c26 100755 --- a/compiler.php +++ b/compiler.php @@ -45,7 +45,7 @@ if (!in_array("all", $langs) || !in_array("en", $langs)) if (in_array("all", $langs)) $langs = array_map( - function($i) { return str_replace("src/i18n/", "", str_replace(".json", "", $i)); }, + function($lang_file) {return pathinfo($lang_file)['filename']; }, glob("src/i18n/*.json") );