feat: legal sections

This commit is contained in:
2026-05-24 13:20:04 +02:00
parent 3a74c2c34d
commit 8b162c8e4c
24 changed files with 1145 additions and 0 deletions
+58
View File
@@ -115,4 +115,62 @@ return [
'empty' => '-',
],
],
'legal_documents' => [
'navigation' => [
'label' => 'Legal documents',
'singular' => 'Legal document',
'plural' => 'Legal documents',
],
'sections' => [
'identity' => 'Identity',
'publication' => 'Publication',
'content' => 'Content',
'metadata' => 'Metadata',
],
'fields' => [
'id' => 'ID',
'slug' => 'Slug',
'type' => 'Type',
'version' => 'Version',
'title' => 'Title',
'locale' => 'Locale',
'localized_title' => 'Localized title',
'content' => 'Content JSON',
'intro' => 'Introduction',
'paragraph' => 'Paragraph',
'sections' => 'Sections',
'section_title' => 'Section title',
'section_body' => 'Section paragraphs',
'is_active' => 'Active',
'published_at' => 'Published at',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
],
'helpers' => [
'slug' => 'Public identifier used by the landing site, e.g. privacy-policy or terms-of-service.',
'is_active' => 'When enabled, the other active versions with the same slug are automatically deactivated.',
'published_at' => 'The public API only exposes active documents whose publication date is set and not in the future.',
'content' => 'Expected shape: {"fr":{"intro":["..."],"sections":[{"title":"...","body":["..."]}]}}',
],
'defaults' => [
'intro' => 'Introductory text for the document.',
'section_title' => 'Section title',
'paragraph' => 'First paragraph.',
],
'actions' => [
'add_intro_paragraph' => 'Add an intro paragraph',
'add_section' => 'Add a section',
'add_section_paragraph' => 'Add a paragraph',
'create_new_version' => 'Create new version',
'create_new_version_confirmation' => 'This will duplicate the content into a new inactive unpublished version.',
'create_new_version_success' => 'New version created.',
],
'status' => [
'active' => 'Active',
'inactive' => 'Inactive',
],
'placeholders' => [
'empty' => '-',
],
],
];
+3
View File
@@ -26,6 +26,9 @@ return [
'meal_image_analysis' => [
'failed' => 'Unable to analyze the image right now.',
],
'legal_documents' => [
'not_found' => 'Legal document not found.',
],
'notifications' => [
'test_title' => 'Test',
'test_body' => 'Test notification from the Laravel API.',
+4
View File
@@ -45,6 +45,10 @@ return [
'resolved' => 'Resolved',
'rejected' => 'Rejected',
],
'legal_document_type' => [
'privacy_policy' => 'Privacy policy',
'terms' => 'Terms of service',
],
'weight_goal' => [
'lose_weight' => 'Lose weight',
'maintain_weight' => 'Maintain weight',