fix translation key in function

This commit is contained in:
Geriano
2022-08-22 12:46:32 +07:00
parent 61c7ccfb24
commit c72ae149c0

View File

@@ -24,10 +24,12 @@ if (! function_exists('__')) {
}
if (is_string($key)) {
$value = $key;
$key = mb_strtolower($key);
$all = $allDefinedTranslation();
if (!array_key_exists($key, $all)) {
$all[$key] = $key;
$all[$key] = $value;
$path = lang_path(app()->getLocale() . '.json');