mirror of
https://github.com/pterodactyl/panel.git
synced 2026-12-04 05:15:41 -05:00
Fix i18n
This commit is contained in:
@@ -31,8 +31,8 @@ class LocaleController extends Controller
|
||||
{
|
||||
$data = $this->translator->getLoader()->load($locale, str_replace('.', '/', $namespace));
|
||||
|
||||
return JsonResponse::create($data, 200, [
|
||||
'E-Tag' => md5(json_encode($data)),
|
||||
return new JsonResponse($data, 200, [
|
||||
'E-Tag' => md5(json_encode($data)), // @phpstan-ignore-line
|
||||
]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user