ldc-nature-eleveurs/resources/views/modules/script-constants.blade.php

11 lines
350 B
PHP
Raw Permalink Normal View History

2024-08-23 08:22:48 +02:00
<script nonce="{{ $nonce ?? '' }}">
2022-08-09 12:29:21 +00:00
if (!window.__SYSTEM) {
window.__SYSTEM = {};
}
window.__SYSTEM._locale = '{{ app()->getLocale() }}';
window.__SYSTEM._translations = @json(cache(sprintf('translations.%s', app()->getLocale())) ?? []);
2024-01-31 16:42:01 +01:00
if (!window.__SYSTEM._asset) {
window.__SYSTEM._asset = {};
2022-08-09 12:29:21 +00:00
}
</script>