Added section title localization support

This commit is contained in:
Fritz Ramirez
2024-03-20 17:42:25 +08:00
parent 9b8fd6c247
commit d89e59d6cf
17 changed files with 307 additions and 6 deletions
@@ -96,4 +96,14 @@ class SectionController extends Controller
'message' => __('frontend::common.section-categories-updated'),
]);
}
public function updateSectionTranslations(Request $request, Section $section)
{
$translations = $request->items;
$this->service->updateSectionTranslations($section, $translations);
return response()->json([
'message' => __('frontend::common.section-translations-updated'),
]);
}
}