Get lang name in more right way

This commit is contained in:
Dmitriy Novash 2020-10-01 11:32:11 +03:00
parent d4a562792e
commit 84152e3296
No known key found for this signature in database
GPG Key ID: D350E5788583C8BA

View File

@ -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")
);