BookStack/resources/views/form/editor-translations.blade.php
Dan Brown 569542f0bb
Input WYSIWYG: Added compontent and rough logic to book form
Just as a draft for prototyping and playing around to get things
started.
2023-12-16 14:48:35 +00:00

11 lines
291 B
PHP

@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>