ldc-legaulois/resources/views/modules/script-constants.blade.php

11 lines
371 B
PHP
Raw Normal View History

<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
if (!window.__SYSTEM) {
window.__SYSTEM = {};
}
window.__SYSTEM._locale = '{{ app()->getLocale() }}';
window.__SYSTEM._translations = @json(cache(sprintf('translations.%s', app()->getLocale())) ?? []);
if (!window.__SYSTEM._asset) {
window.__SYSTEM._asset = {};
}
</script>