1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2024-10-30 15:42:41 +01:00
BookStack/resources/views/pages/parts/editor-translations.blade.php

11 lines
291 B
PHP
Raw Normal View History

@php
$en = trans('editor', [], 'en');
$lang = trans('editor');
$mergedText = [];
foreach ($en as $key => $value) {
$mergedText[$value] = $lang[$key] ?? $value;
}
@endphp
<script nonce="{{ $cspNonce }}">
window.editor_translations = @json($mergedText);
</script>