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

11 lines
371 B
PHP
Raw Permalink Normal View History

<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
2023-11-13 11:56:06 +01:00
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 = {};
}
2023-11-13 11:56:06 +01:00
</script>