ldc-gen-game-web/resources/views/modules/script-constants.blade.php

9 lines
341 B
PHP
Raw Permalink Normal View History

2023-11-20 17:22:24 +01:00
<script @if (isset($nonce)) nonce="{{ $nonce }}" @endif>
2023-08-21 10:22:07 +02:00
if (!window.__SYSTEM) {
window.__SYSTEM = {};
}
window.__SYSTEM._locale = '{{ app()->getLocale() }}';
window.__SYSTEM._translations = @json(cache(sprintf('translations.%s', app()->getLocale())) ?? []);
window.__SYSTEM._asset = '{{ asset('') }}';
</script>