diff --git a/app/Console/Commands/MobileLocalization.php b/app/Console/Commands/MobileLocalization.php index f47d6d3e9d..74e0d71fe2 100644 --- a/app/Console/Commands/MobileLocalization.php +++ b/app/Console/Commands/MobileLocalization.php @@ -94,9 +94,10 @@ class MobileLocalization extends Command $start = strpos($data, '\'en\': {') + 8; $end = strpos($data, '},', $start); - $data = substr($data, $start, $end - $start - 6); + $data = substr($data, $start, $end - $start - 5); $data = str_replace("\n", "", $data); + $data = str_replace("\"", "\'", $data); $data = str_replace("'", "\"", $data); return json_decode('{' . $data . '}');