ldc-le-gaulois-pro/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())) ?? []);
2023-12-21 18:01:56 +01:00
if (!window.__SYSTEM._asset) {
window.__SYSTEM._asset = {};
}
</script>