Added the ability to automatically translate documentation content.

This commit is contained in:
2025-02-09 18:58:51 +05:00
parent 25faa3d62b
commit 58a256e1e4
24 changed files with 768 additions and 3 deletions

View File

@@ -29,7 +29,13 @@
role="tabpanel" aria-labelledby="language-{{ $language->id }}-tab">
<x-volt.forms.checkbox :title="__('Edit')" :name="'content-enable-' . $language->id"
:user-value="($index === 0) ? 1 : 0" class="content-enable" checkbox-value="1"
notCheckedValue="0"/>
not-checked-value="0"/>
@if($serviceTranslationEnable)
<x-volt.forms.checkbox :title="__('Automatic translation')" :name="'translate-automatically[' . $language->id . ']'"
:user-value="1" class="language-content" checkbox-value="1"
not-checked-value="0"/>
@endif
<x-volt.forms.input :title="__('validation.attributes.title')"
:name="'content[' . $language->id . '][title]'" type="text" class="language-content"
:disabled="$index !== 0" :value="$content?->title ?? ''" required/>