mirror of
https://github.com/devcode-it/openstamanager.git
synced 2025-02-25 07:47:55 +01:00
Spostata funzione di traduzione JS all'interno di `utils.js` e poi portata in una variabile globale. Le traduzioni sono ora salvate nella cache.
8 lines
194 B
PHP
8 lines
194 B
PHP
@php
|
|
/** @var string $translations */
|
|
$translations = cache('translations_' . app()->getLocale());
|
|
@endphp
|
|
<script>
|
|
window.translations = JSON.parse('{!! $translations !!}')
|
|
</script>
|