feat: moderation

This commit is contained in:
2026-05-22 11:56:17 +02:00
parent f5b460c650
commit 1c472e46db
43 changed files with 1836 additions and 3 deletions
+47
View File
@@ -53,4 +53,51 @@ return [
'empty' => '-',
],
],
'moderation_cases' => [
'navigation' => [
'label' => 'Moderation',
'singular' => 'Moderation case',
'plural' => 'Moderation cases',
],
'sections' => [
'case' => 'Case',
'target' => 'Reported content',
'resolution' => 'Resolution',
'metadata' => 'Metadata',
],
'fields' => [
'id' => 'ID',
'target_type' => 'Type',
'target_title' => 'Target',
'caseable_id' => 'Target ID',
'status' => 'Status',
'reports_count' => 'Reports',
'threshold' => 'Threshold',
'threshold_notified_at' => 'Notification sent at',
'assigned_to' => 'Assigned to',
'resolved_by' => 'Resolved by',
'resolved_at' => 'Resolved at',
'resolution_note' => 'Resolution note',
'created_at' => 'Created at',
'updated_at' => 'Updated at',
],
'targets' => [
'meal_post' => 'Meal',
'user' => 'User',
'unknown' => 'Unknown',
],
'actions' => [
'mark_reviewing' => 'Start review',
'hide_meal' => 'Hide meal',
'suspend_user' => 'Suspend',
'resolve' => 'Resolve',
'reject' => 'Reject',
],
'filters' => [
'target_type' => 'Type',
],
'placeholders' => [
'empty' => '-',
],
],
];
+17
View File
@@ -5,6 +5,7 @@ return [
'registered_unverified' => 'Account created. Check your email to verify it.',
'invalid_credentials' => 'Invalid credentials.',
'email_not_verified' => 'Verify your email address before signing in.',
'suspended' => 'This account is suspended.',
'already_verified' => 'Account already verified.',
'verified' => 'Account verified successfully.',
'verification_sent' => 'Verification email sent.',
@@ -27,6 +28,19 @@ return [
'notifications' => [
'test_title' => 'Test',
'test_body' => 'Test notification from the Laravel API.',
'moderation_threshold_title' => 'Reports need review',
'moderation_threshold_body' => ':count reports received for :type.',
],
'reports' => [
'created' => 'Report sent. Thanks, our team will review this content.',
'already_exists' => 'You have already reported this content.',
'cannot_report_self' => 'You cannot report your own profile.',
'cannot_report_own_meal' => 'You cannot report your own meal.',
'targets' => [
'meal_post' => 'a meal',
'user' => 'a user',
'unknown' => 'content',
],
],
'post_reviews' => [
'already_exists' => 'You have already reviewed this meal.',
@@ -50,5 +64,8 @@ return [
'nutrition_goals_required' => 'Fill in all nutrition goals.',
'nutrition_goals_positive' => 'Nutrition goals must be positive.',
'nutrition_goals_max' => 'This nutrition goal value is too high.',
'report_reason_required' => 'Choose a report reason.',
'report_reason_valid' => 'Choose a valid report reason.',
'report_details_max' => 'The report details may not be greater than 2000 characters.',
],
];
+21
View File
@@ -24,6 +24,27 @@ return [
'admin' => 'Administrator',
'moderator' => 'Moderator',
],
'report_reason' => [
'spam' => 'Spam',
'harassment' => 'Harassment',
'hate_speech' => 'Hate speech',
'inappropriate' => 'Inappropriate content',
'dangerous_content' => 'Dangerous content',
'misleading' => 'Misleading information',
'other' => 'Other',
],
'report_status' => [
'open' => 'Open',
'reviewing' => 'Reviewing',
'resolved' => 'Resolved',
'rejected' => 'Rejected',
],
'moderation_case_status' => [
'open' => 'Open',
'reviewing' => 'Reviewing',
'resolved' => 'Resolved',
'rejected' => 'Rejected',
],
'weight_goal' => [
'lose_weight' => 'Lose weight',
'maintain_weight' => 'Maintain weight',
+47
View File
@@ -53,4 +53,51 @@ return [
'empty' => '-',
],
],
'moderation_cases' => [
'navigation' => [
'label' => 'Modération',
'singular' => 'Dossier de modération',
'plural' => 'Dossiers de modération',
],
'sections' => [
'case' => 'Dossier',
'target' => 'Contenu signalé',
'resolution' => 'Traitement',
'metadata' => 'Métadonnées',
],
'fields' => [
'id' => 'ID',
'target_type' => 'Type',
'target_title' => 'Cible',
'caseable_id' => 'ID cible',
'status' => 'Statut',
'reports_count' => 'Signalements',
'threshold' => 'Seuil',
'threshold_notified_at' => 'Notification envoyée le',
'assigned_to' => 'Assigné à',
'resolved_by' => 'Traité par',
'resolved_at' => 'Traité le',
'resolution_note' => 'Note de traitement',
'created_at' => 'Créé le',
'updated_at' => 'Mis à jour le',
],
'targets' => [
'meal_post' => 'Plat',
'user' => 'Utilisateur',
'unknown' => 'Inconnu',
],
'actions' => [
'mark_reviewing' => 'Prendre en charge',
'hide_meal' => 'Masquer le plat',
'suspend_user' => 'Suspendre',
'resolve' => 'Résoudre',
'reject' => 'Rejeter',
],
'filters' => [
'target_type' => 'Type',
],
'placeholders' => [
'empty' => '-',
],
],
];
+17
View File
@@ -5,6 +5,7 @@ return [
'registered_unverified' => 'Compte créé. Consulte tes emails pour le vérifier.',
'invalid_credentials' => 'Identifiants invalides.',
'email_not_verified' => 'Vérifie ton adresse email avant de te connecter.',
'suspended' => 'Ce compte est suspendu.',
'already_verified' => 'Compte déjà vérifié.',
'verified' => 'Compte vérifié avec succès.',
'verification_sent' => 'Email de vérification envoyé.',
@@ -27,6 +28,19 @@ return [
'notifications' => [
'test_title' => 'Test',
'test_body' => 'Notification test depuis Laravel API.',
'moderation_threshold_title' => 'Signalements à vérifier',
'moderation_threshold_body' => ':count signalements reçus pour :type.',
],
'reports' => [
'created' => 'Signalement envoyé. Merci, notre équipe va examiner ce contenu.',
'already_exists' => 'Vous avez déjà signalé ce contenu.',
'cannot_report_self' => 'Vous ne pouvez pas signaler votre propre profil.',
'cannot_report_own_meal' => 'Vous ne pouvez pas signaler votre propre plat.',
'targets' => [
'meal_post' => 'un plat',
'user' => 'un utilisateur',
'unknown' => 'un contenu',
],
],
'post_reviews' => [
'already_exists' => 'Vous avez déjà donné un avis pour ce repas.',
@@ -50,5 +64,8 @@ return [
'nutrition_goals_required' => 'Renseigne tous les objectifs nutritionnels.',
'nutrition_goals_positive' => 'Les objectifs nutritionnels doivent être positifs.',
'nutrition_goals_max' => 'La valeur de cet objectif nutritionnel est trop élevée.',
'report_reason_required' => 'Choisis une raison de signalement.',
'report_reason_valid' => 'Choisis une raison de signalement valide.',
'report_details_max' => 'Le détail du signalement ne doit pas dépasser 2000 caractères.',
],
];
+21
View File
@@ -24,6 +24,27 @@ return [
'admin' => 'Administrateur',
'moderator' => 'Modérateur',
],
'report_reason' => [
'spam' => 'Spam',
'harassment' => 'Harcèlement',
'hate_speech' => 'Discours haineux',
'inappropriate' => 'Contenu inapproprié',
'dangerous_content' => 'Contenu dangereux',
'misleading' => 'Information trompeuse',
'other' => 'Autre',
],
'report_status' => [
'open' => 'Ouvert',
'reviewing' => 'En cours',
'resolved' => 'Résolu',
'rejected' => 'Rejeté',
],
'moderation_case_status' => [
'open' => 'Ouvert',
'reviewing' => 'En cours',
'resolved' => 'Résolu',
'rejected' => 'Rejeté',
],
'weight_goal' => [
'lose_weight' => 'Perdre du poids',
'maintain_weight' => 'Maintenir le poids',