mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-11-23 23:49:37 +00:00
569542f0bb
Just as a draft for prototyping and playing around to get things started.
11 lines
291 B
PHP
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> |