Fix i18n
This commit is contained in:
parent
0dddcfca36
commit
134ba508e2
|
@ -31,8 +31,8 @@ class LocaleController extends Controller
|
||||||
{
|
{
|
||||||
$data = $this->translator->getLoader()->load($locale, str_replace('.', '/', $namespace));
|
$data = $this->translator->getLoader()->load($locale, str_replace('.', '/', $namespace));
|
||||||
|
|
||||||
return JsonResponse::create($data, 200, [
|
return new JsonResponse($data, 200, [
|
||||||
'E-Tag' => md5(json_encode($data)),
|
'E-Tag' => md5(json_encode($data)), // @phpstan-ignore-line
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ i18n
|
||||||
.use(Backend)
|
.use(Backend)
|
||||||
.use(initReactI18next)
|
.use(initReactI18next)
|
||||||
.init({
|
.init({
|
||||||
debug: process.env.NODE_ENV !== 'production',
|
debug: process.env.I18N_DEBUG === 'true',
|
||||||
lng: 'en',
|
lng: 'en',
|
||||||
fallbackLng: 'en',
|
fallbackLng: 'en',
|
||||||
keySeparator: '.',
|
keySeparator: '.',
|
||||||
|
|
Loading…
Reference in New Issue