feat: legal sections
This commit is contained in:
@@ -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' => '-',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -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.',
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -115,4 +115,62 @@ return [
|
||||
'empty' => '-',
|
||||
],
|
||||
],
|
||||
'legal_documents' => [
|
||||
'navigation' => [
|
||||
'label' => 'Documents légaux',
|
||||
'singular' => 'Document légal',
|
||||
'plural' => 'Documents légaux',
|
||||
],
|
||||
'sections' => [
|
||||
'identity' => 'Identité',
|
||||
'publication' => 'Publication',
|
||||
'content' => 'Contenu',
|
||||
'metadata' => 'Métadonnées',
|
||||
],
|
||||
'fields' => [
|
||||
'id' => 'ID',
|
||||
'slug' => 'Slug',
|
||||
'type' => 'Type',
|
||||
'version' => 'Version',
|
||||
'title' => 'Titre',
|
||||
'locale' => 'Locale',
|
||||
'localized_title' => 'Titre localisé',
|
||||
'content' => 'Contenu JSON',
|
||||
'intro' => 'Introduction',
|
||||
'paragraph' => 'Paragraphe',
|
||||
'sections' => 'Sections',
|
||||
'section_title' => 'Titre de section',
|
||||
'section_body' => 'Paragraphes de la section',
|
||||
'is_active' => 'Actif',
|
||||
'published_at' => 'Publié le',
|
||||
'created_at' => 'Créé le',
|
||||
'updated_at' => 'Mis à jour le',
|
||||
],
|
||||
'helpers' => [
|
||||
'slug' => 'Identifiant public utilisé par le site landing, par exemple privacy-policy ou terms-of-service.',
|
||||
'is_active' => 'Quand ce champ est activé, les autres versions actives avec le même slug sont automatiquement désactivées.',
|
||||
'published_at' => 'L’API publique expose uniquement les documents actifs avec une date de publication renseignée et non future.',
|
||||
'content' => 'Format attendu : {"fr":{"intro":["..."],"sections":[{"title":"...","body":["..."]}]}}',
|
||||
],
|
||||
'defaults' => [
|
||||
'intro' => 'Texte introductif du document.',
|
||||
'section_title' => 'Titre de section',
|
||||
'paragraph' => 'Premier paragraphe.',
|
||||
],
|
||||
'actions' => [
|
||||
'add_intro_paragraph' => 'Ajouter un paragraphe d’introduction',
|
||||
'add_section' => 'Ajouter une section',
|
||||
'add_section_paragraph' => 'Ajouter un paragraphe',
|
||||
'create_new_version' => 'Créer une nouvelle version',
|
||||
'create_new_version_confirmation' => 'Cette action duplique le contenu dans une nouvelle version inactive et non publiée.',
|
||||
'create_new_version_success' => 'Nouvelle version créée.',
|
||||
],
|
||||
'status' => [
|
||||
'active' => 'Actif',
|
||||
'inactive' => 'Inactif',
|
||||
],
|
||||
'placeholders' => [
|
||||
'empty' => '-',
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
@@ -26,6 +26,9 @@ return [
|
||||
'meal_image_analysis' => [
|
||||
'failed' => "Impossible d'analyser l'image pour le moment.",
|
||||
],
|
||||
'legal_documents' => [
|
||||
'not_found' => 'Document légal introuvable.',
|
||||
],
|
||||
'notifications' => [
|
||||
'test_title' => 'Test',
|
||||
'test_body' => 'Notification test depuis Laravel API.',
|
||||
|
||||
@@ -45,6 +45,10 @@ return [
|
||||
'resolved' => 'Résolu',
|
||||
'rejected' => 'Rejeté',
|
||||
],
|
||||
'legal_document_type' => [
|
||||
'privacy_policy' => 'Politique de confidentialité',
|
||||
'terms' => 'Conditions d’utilisation',
|
||||
],
|
||||
'weight_goal' => [
|
||||
'lose_weight' => 'Perdre du poids',
|
||||
'maintain_weight' => 'Maintenir le poids',
|
||||
|
||||
Reference in New Issue
Block a user