Skip to content

A full-featured CRM built with React, shadcn/ui, and Supabase.

refactor(i18n): split CRM catalogs into dedicated en/fr files

Anibal Svarcasf57f552e5cc2
diff --git a/src/components/atomic-crm/contacts/ContactImportButton.tsx b/src/components/atomic-crm/contacts/ContactImportButton.tsx
index 05fda340..a6655674 100644
--- a/src/components/atomic-crm/contacts/ContactImportButton.tsx
+++ b/src/components/atomic-crm/contacts/ContactImportButton.tsx
@@ -167,6 +167,8 @@ export function ContactImportDialog({
<Alert>
<AlertDescription>
{translate("crm.contacts.import.complete", {
+ importCount: importer.importCount,
+ errorCount: importer.errorCount,
_: `Contacts import complete. Imported ${importer.importCount} contacts, with ${importer.errorCount} errors`,
})}
</AlertDescription>
diff --git a/src/components/atomic-crm/root/englishCrmMessages.ts b/src/components/atomic-crm/root/englishCrmMessages.ts
new file mode 100644
index 00000000..ece54e71
--- /dev/null
+++ b/src/components/atomic-crm/root/englishCrmMessages.ts
@@ -0,0 +1,421 @@
+export const englishCrmMessages = {
+ crm: {
+ auth: {
+ confirmation_required:
+ "Please follow the link we just sent you by email to confirm your account.",
+ recovery_email_sent:
+ "If you're a registered user, you should receive a password recovery email shortly.",
+ sign_in_failed: "Failed to log in.",
+ sign_in_google_workspace: "Sign in with Google Workplace",
+ signup: {
+ create_account: "Create account",
+ create_first_user:
+ "Create the first user account to complete the setup.",
+ creating: "Creating...",
+ initial_user_created: "Initial user successfully created",
+ },
+ welcome_title: "Welcome to Atomic CRM",
+ },
+ common: {
+ activity: "Activity",
+ ago: "ago",
+ by: "By",
+ details: "Details",
+ errors: "errors",
+ invalid_date: "Invalid date",
+ last_activity: "last activity",
+ load_more: "Load more",
+ misc: "Misc",
+ past: "Past",
+ read_more: "Read more",
+ regarding: "Re:",
+ retry: "Retry",
+ show_less: "Show less",
+ with: "with",
+ account_manager: "Account manager",
+ at: "at",
+ copied: "Copied!",
+ copy: "Copy",
+ loading: "Loading...",
+ me: "Me",
+ task_count: "task |||| tasks",
+ },
+ companies: {
+ empty: {
+ description: "It seems your company list is empty.",
+ title: "No companies found",
+ },
+ inputs: {
+ additional_information: "Additional information",
+ address: "Address",
+ contact: "Contact",
+ context: "Context",
+ },
+ name: "Company |||| Companies",
+ forcedCaseName: "Company",
+ action: {
+ create: "Create Company",
+ edit: "Edit company",
+ new: "New Company",
+ show: "Show company",
+ },
+ contacts: {
+ many: "%{smart_count} Contacts",
+ none: "No Contacts",
+ one: "1 Contact",
+ },
+ deals: {
+ many: "%{smart_count} deals",
+ one: "1 deal",
+ },
+ aside: {
+ additional_info: "Additional info",
+ company_info: "Company info",
+ context: "Context",
+ main_address: "Main address",
+ },
+ fields: {
+ name: "Company name",
+ revenue: "Revenue",
+ sector: "Sector",
+ size: "Size",
+ tax_identifier: "Tax Identifier",
+ },
+ filters: {
+ only_mine: "Only companies I manage",
+ sector: "Sector",
+ size: "Size",
+ },
+ },
+ contacts: {
+ action: {
+ add: "Add contact",
+ add_first: "Add your first contact",
+ edit: "Edit contact",
+ new: "New Contact",
+ show: "Show contact",
+ },
+ background: {
+ last_activity_on: "Last activity on",
+ added_on: "Added on",
+ followed_by: "Followed by",
+ },
+ empty: {
+ description: "It seems your contact list is empty.",
+ title: "No contacts found",
+ },
+ import: {
+ button: "Import CSV",
+ complete:
+ "Contacts import complete. Imported %{importCount} contacts, with %{errorCount} errors",
+ error:
+ "Failed to import this file, please make sure your provided a valid CSV file.",
+ imported: "Imported",
+ remaining_time: "Estimated remaining time:",
+ running: "The import is running, please do not close this tab.",
+ sample_download: "Download CSV sample",
+ sample_hint: "Here is a sample CSV file you can use as a template",
+ stop: "Stop import",
+ csv_file: "CSV File",
+ contacts_label: "contact |||| contacts",
+ },
+ inputs: {
+ background_info_short: "Background info",
+ email: "Email",
+ identity: "Identity",
+ personal_info: "Personal info",
+ phone_number: "Phone number",
+ position: "Position",
+ email_addresses: "Email addresses",
+ phone_numbers: "Phone numbers",
+ linkedin_url: "LinkedIn URL",
+ background_info: "Background info (bio, how you met, etc)",
+ },
+ list: {
+ error_loading: "Error loading contacts",
+ },
+ merge: {
+ action: "Merge with another contact",
+ confirm: "Merge Contacts",
+ current_contact: "Current Contact (will be deleted)",
+ description: "Merge this contact with another one.",
+ error: "Failed to merge contacts",
+ merging: "Merging...",
+ no_additional_data: "No additional data to merge",
+ select_target: "Please select a contact to merge with",
+ success: "Contacts merged successfully",
+ target_contact: "Target Contact (will be kept)",
+ title: "Merge Contact",
+ warning_description:
+ "All data will be transferred to the second contact. This action cannot be undone.",
+ warning_title: "Warning: Destructive Operation",
+ what_will_be_merged: "What will be merged:",
+ },
+ name: "Contact |||| Contacts",
+ forcedCaseName: "Contact",
+ filters: {
+ before_last_month: "Before last month",
+ before_this_month: "Before this month",
+ before_this_week: "Before this week",
+ last_activity: "Last activity",
+ managed_by_me: "Managed by me",
+ search: "Search name, company...",
+ status: "Status",
+ tags: "Tags",
+ this_week: "This week",
+ today: "Today",
+ },
+ hot: {
+ create: "Create contact",
+ empty_change_status:
+ 'Change the status of a contact by adding a note to that contact and clicking on "show options".',
+ empty_hint: 'Contacts with a "hot" status will appear here.',
+ title: "Hot Contacts",
+ },
+ },
+ dashboard: {
+ stepper: {
+ install: "Install Atomic CRM",
+ progress: "%{step}/3 done",
+ whats_next: "What's next?",
+ },
+ welcome: {
+ paragraph_1:
+ "is a template designed to help you quickly build your own CRM.",
+ paragraph_2:
+ "This demo runs on a mock API, so you can explore and modify the data. It resets on reload. The full version uses Supabase for the backend.",
+ paragraph_3:
+ ", Atomic CRM is fully open-source. You can find the code at",
+ powered_by: "Powered by",
+ title: "Your CRM Starter Kit",
+ },
+ },
+ deals: {
+ action: {
+ back_to_deal: "Back to deal",
+ create: "Create deal",
+ new: "New Deal",
+ },
+ archived: {
+ action: "Archive",
+ error: "Error: deal not archived",
+ list_title: "Archived Deals",
+ success: "Deal archived",
+ title: "Archived Deal",
+ view: "View archived deals",
+ },
+ edit: {
+ title: "Edit %{name} deal",
+ },
+ fields: {
+ budget: "Budget",
+ category: "Category",
+ expected_closing_date: "Expected closing date",
+ stage: "Stage",
+ description: "Description",
+ },
+ inputs: {
+ linked_to: "Linked to",
+ name: "Deal name",
+ contacts: "Contacts",
+ category: "Category",
+ },
+ unarchived: {
+ action: "Send back to the board",
+ error: "Error: deal not unarchived",
+ success: "Deal unarchived",
+ },
+ updated: "Deal updated",
+ name: "Deal |||| Deals",
+ empty: {
+ before_create: "before creating a deal.",
+ description: "It seems your deal list is empty.",
+ title: "No deals found",
+ },
+ filters: {
+ company: "Company",
+ },
+ },
+ header: {
+ import_data: "Import data",
+ },
+ image_editor: {
+ change: "Change",
+ drop_hint: "Drop a file to upload, or click to select it.",
+ editable_content: "Editable content",
+ title: "Upload and resize image",
+ update_image: "Update Image",
+ },
+ import: {
+ action: {
+ download_error_report: "Download the error report",
+ import: "Import",
+ import_another: "Import another file",
+ },
+ error: {
+ unable: "Unable to import this file.",
+ },
+ idle: {
+ description_1:
+ "You can import sales, companies, contacts, companies, notes, and tasks.",
+ description_2:
+ "Data must be in a JSON file matching the following sample:",
+ },
+ status: {
+ all_success: "All records were imported successfully.",
+ complete: "Import complete.",
+ failed: "Failed",
+ imported: "Imported",
+ in_progress:
+ "Import in progress, please don't navigate away from this page.",
+ some_failed: "Some records were not imported.",
+ table_caption: "Import status",
+ },
+ title: "Import Data",
+ },
+ notes: {
+ action: {
+ add: "Add note",
+ add_first: "Add your first note",
+ delete: "Delete note",
+ edit: "Edit note",
+ update: "Update note",
+ add_this: "Add this note",
+ },
+ deleted: "Note deleted",
+ empty: "No notes yet",
+ note_for: "Note for",
+ stepper: {
+ hint: "Go to a contact page and add a note",
+ },
+ name: "Note |||| Notes",
+ forcedCaseName: "Note",
+ added: "Note added",
+ inputs: {
+ add_note: "Add a note",
+ date: "Date",
+ options_hint: "(attach files, or change details)",
+ reference_contact: "Contact",
+ reference_deal: "Deal",
+ show_options: "Show options",
+ },
+ },
+ sales: {
+ create: {
+ error: "An error occurred while creating the user.",
+ success:
+ "User created. They will soon receive an email to set their password.",
+ title: "Create a new user",
+ },
+ name: "User |||| Users",
+ action: {
+ new: "New user",
+ },
+ fields: {
+ admin: "Admin",
+ disabled: "Disabled",
+ },
+ },
+ settings: {
+ companies: {
+ sectors: "Sectors",
+ },
+ dark_mode_logo: "Dark Mode Logo",
+ deals: {
+ categories: "Categories",
+ pipeline_help:
+ 'Select which deal stages count as "pipeline" (completed) deals.',
+ pipeline_statuses: "Pipeline Statuses",
+ stages: "Stages",
+ },
+ light_mode_logo: "Light Mode Logo",
+ notes: {
+ statuses: "Statuses",
+ },
+ reset_defaults: "Reset to Defaults",
+ save_error: "Failed to save configuration",
+ saved: "Configuration saved successfully",
+ saving: "Saving...",
+ tasks: {
+ types: "Types",
+ },
+ title: "Settings",
+ app_title: "App Title",
+ sections: {
+ branding: "Branding",
+ },
+ },
+ tasks: {
+ action: {
+ add: "Add task",
+ create: "Create task",
+ edit: "Edit task",
+ },
+ actions: {
+ postpone_next_week: "Postpone to next week",
+ postpone_tomorrow: "Postpone to tomorrow",
+ title: "task actions",
+ },
+ added: "Task added",
+ deleted: "Task deleted successfully",
+ dialog: {
+ create: "Create a new task",
+ create_for: "Create a new task for ",
+ },
+ empty: "No tasks yet",
+ empty_list_hint: "Tasks added to your contacts will appear here.",
+ fields: {
+ due: "due",
+ description: "Description",
+ },
+ filters: {
+ later: "Later",
+ overdue: "Overdue",
+ this_week: "This week",
+ today: "Today",
+ tomorrow: "Tomorrow",
+ with_pending: "With pending tasks",
+ },
+ updated: "Task updated",
+ name: "Task |||| Tasks",
+ forcedCaseName: "Task",
+ },
+ theme: {
+ dark: "Dark theme",
+ dark_short: "Dark",
+ light: "Light theme",
+ light_short: "Light",
+ system: "System theme",
+ system_short: "System",
+ },
+ language: "Language",
+ navigation: {
+ label: "CRM navigation",
+ },
+ tags: {
+ name: "Tag |||| Tags",
+ dialog: {
+ color: "Color",
+ name_label: "Tag name",
+ name_placeholder: "Enter tag name",
+ },
+ },
+ profile: {
+ inbound: {
+ description_prefix:
+ "You can start sending emails to your server's inbound email address, e.g. by adding it to the",
+ description_suffix:
+ "field. Atomic CRM will process the emails and add notes to the corresponding contacts.",
+ title: "Inbound email",
+ },
+ password: {
+ change: "Change password",
+ },
+ password_reset_sent:
+ "A reset password email has been sent to your email address",
+ title: "Profile",
+ updated: "Your profile has been updated",
+ update_error: "An error occurred. Please try again",
+ },
+ },
+} as const;
diff --git a/src/components/atomic-crm/root/frenchCrmMessages.ts b/src/components/atomic-crm/root/frenchCrmMessages.ts
new file mode 100644
index 00000000..9ecc97fb
--- /dev/null
+++ b/src/components/atomic-crm/root/frenchCrmMessages.ts
@@ -0,0 +1,424 @@
+export const frenchCrmMessages = {
+ crm: {
+ auth: {
+ confirmation_required:
+ "Veuillez suivre le lien que nous venons de vous envoyer par email pour confirmer votre compte.",
+ recovery_email_sent:
+ "Si vous êtes un utilisateur enregistré, vous devriez recevoir prochainement un e-mail de récupération de mot de passe.",
+ sign_in_failed: "Échec de la connexion.",
+ sign_in_google_workspace: "Connectez-vous avec Google Workplace",
+ signup: {
+ create_account: "Créer un compte",
+ create_first_user:
+ "Créez le premier compte utilisateur pour terminer la configuration.",
+ creating: "Création...",
+ initial_user_created: "Utilisateur initial créé avec succès",
+ },
+ welcome_title: "Bienvenue sur Atomic CRM",
+ },
+ common: {
+ activity: "Activité",
+ ago: "il y a",
+ by: "Par",
+ details: "Détails",
+ errors: "erreurs",
+ invalid_date: "Date invalide",
+ last_activity: "dernière activité",
+ load_more: "Charger plus",
+ misc: "Divers",
+ past: "Passé",
+ read_more: "En savoir plus",
+ regarding: "Concernant:",
+ retry: "Réessayer",
+ show_less: "Afficher moins",
+ task_count: "tâche |||| tâches",
+ with: "avec",
+ account_manager: "Responsable de compte",
+ at: "chez",
+ copied: "Copié !",
+ copy: "Copier",
+ loading: "Chargement...",
+ me: "Moi",
+ },
+ companies: {
+ empty: {
+ description: "Il semble que la liste de vos entreprises soit vide.",
+ title: "Aucune entreprise trouvée",
+ },
+ inputs: {
+ additional_information: "Informations Complémentaires",
+ address: "Adresse",
+ contact: "Contact",
+ context: "Contexte",
+ },
+ name: "Entreprise |||| Entreprises",
+ forcedCaseName: "Entreprise",
+ action: {
+ create: "Créer une entreprise",
+ edit: "Modifier l'entreprise",
+ new: "Nouvelle entreprise",
+ show: "Afficher l'entreprise",
+ },
+ contacts: {
+ many: "%{smart_count} contacts",
+ none: "Aucun contact",
+ one: "1 contact",
+ },
+ deals: {
+ many: "%{smart_count} affaires",
+ one: "1 affaire",
+ },
+ aside: {
+ additional_info: "Informations supplémentaires",
+ company_info: "Informations de l'entreprise",
+ context: "Contexte",
+ main_address: "Adresse principale",
+ },
+ fields: {
+ name: "Nom de l'entreprise",
+ revenue: "Chiffre d'affaires",
+ sector: "Secteur",
+ size: "Taille",
+ tax_identifier: "Identifiant fiscal",
+ },
+ filters: {
+ only_mine: "Seulement les entreprises que je gère",
+ sector: "Secteur",
+ size: "Taille",
+ },
+ },
+ contacts: {
+ action: {
+ add: "Ajouter un contact",
+ add_first: "Ajoutez votre premier contact",
+ edit: "Modifier le contact",
+ new: "Nouveau contact",
+ show: "Afficher le contact",
+ },
+ background: {
+ last_activity_on: "Dernière activité sur",
+ added_on: "Ajouté le",
+ followed_by: "Suivi par",
+ },
+ empty: {
+ description: "Il semble que votre liste de contacts soit vide.",
+ title: "Aucun contact trouvé",
+ },
+ import: {
+ button: "Importer un fichier CSV",
+ complete:
+ "Import des contacts terminé. %{importCount} contacts importés, %{errorCount} erreurs",
+ error:
+ "Échec de l'importation de ce fichier. Veuillez vous assurer que vous avez fourni un fichier CSV valide.",
+ imported: "Importé",
+ remaining_time: "Temps restant estimé :",
+ running: "L'import est en cours, merci de ne pas fermer cet onglet.",
+ sample_download: "Télécharger un exemple CSV",
+ sample_hint:
+ "Voici un exemple de fichier CSV que vous pouvez utiliser comme modèle",
+ stop: "Arrêter l'importation",
+ csv_file: "Fichier CSV",
+ contacts_label: "contact |||| contacts",
+ },
+ inputs: {
+ background_info_short: "Informations générales",
+ email: "E-mail",
+ identity: "Identité",
+ personal_info: "Informations personnelles",
+ phone_number: "Numéro de téléphone",
+ position: "Position",
+ email_addresses: "Adresses e-mail",
+ phone_numbers: "Numéros de téléphone",
+ linkedin_url: "URL LinkedIn",
+ background_info:
+ "Informations de contexte (bio, comment vous vous êtes rencontrés, etc.)",
+ },
+ list: {
+ error_loading: "Erreur lors du chargement des contacts",
+ },
+ merge: {
+ action: "Fusionner avec un autre contact",
+ confirm: "Fusionner les contacts",
+ current_contact: "Contact actuel (sera supprimé)",
+ description: "Fusionnez ce contact avec un autre.",
+ error: "Échec de la fusion des contacts",
+ merging: "Fusion...",
+ no_additional_data: "Aucune donnée supplémentaire à fusionner",
+ select_target: "Veuillez sélectionner un contact avec lequel fusionner",
+ success: "Contacts fusionnés avec succès",
+ target_contact: "Contact cible (sera conservé)",
+ title: "Fusionner les contacts",
+ warning_description:
+ "Toutes les données seront transférées au deuxième contact. Cette action ne peut pas être annulée.",
+ warning_title: "Avertissement : opération destructrice",
+ what_will_be_merged: "Ce qui sera fusionné :",
+ },
+ name: "Contact |||| Contacts",
+ forcedCaseName: "Contact",
+ filters: {
+ before_last_month: "Avant le mois dernier",
+ before_this_month: "Avant ce mois-ci",
+ before_this_week: "Avant cette semaine",
+ last_activity: "Dernière activité",
+ managed_by_me: "Géré par moi",
+ search: "Rechercher nom, entreprise...",
+ status: "Statut",
+ tags: "Étiquettes",
+ this_week: "Cette semaine",
+ today: "Aujourd'hui",
+ },
+ hot: {
+ create: "Créer un contact",
+ empty_change_status:
+ 'Changez le statut d\'un contact en ajoutant une note à ce contact et en cliquant sur "afficher les options".',
+ empty_hint: 'Les contacts avec un statut "chaud" apparaîtront ici.',
+ title: "Contacts chauds",
+ },
+ },
+ dashboard: {
+ stepper: {
+ install: "Installer Atomic CRM",
+ progress: "%{step}/3 terminé",
+ whats_next: "Et ensuite ?",
+ },
+ welcome: {
+ paragraph_1:
+ "est un modèle conçu pour vous aider à créer rapidement votre propre CRM.",
+ paragraph_2:
+ "Cette démo s'exécute sur une API fictive, vous pouvez donc explorer et modifier les données. Il se réinitialise au rechargement. La version complète utilise Supabase pour le backend.",
+ paragraph_3:
+ ", Atomic CRM est entièrement open source. Vous pouvez trouver le code sur",
+ powered_by: "Alimenté par",
+ title: "Votre kit de démarrage CRM",
+ },
+ },
+ deals: {
+ action: {
+ back_to_deal: "Retour à l'affaire",
+ create: "Créer un deal",
+ new: "Nouvelle affaire",
+ },
+ archived: {
+ action: "Archiver",
+ error: "Erreur : affaire non archivée",
+ list_title: "Affaires archivées",
+ success: "Affaire archivée",
+ title: "Affaire archivée",
+ view: "Afficher les affaires archivées",
+ },
+ edit: {
+ title: "Modifier l'affaire %{name}",
+ },
+ fields: {
+ budget: "Budget",
+ category: "Catégorie",
+ expected_closing_date: "Date de clôture prévue",
+ stage: "Étape",
+ description: "Description",
+ },
+ inputs: {
+ linked_to: "Lié à",
+ name: "Nom du deal",
+ contacts: "Contacts",
+ category: "Catégorie",
+ },
+ unarchived: {
+ action: "Renvoyer au tableau",
+ error: "Erreur : affaire non désarchivée",
+ success: "Affaire désarchivée",
+ },
+ updated: "Affaire mise à jour",
+ name: "Affaire |||| Affaires",
+ empty: {
+ before_create: "avant de créer une affaire.",
+ description: "Il semble que votre liste d'affaires soit vide.",
+ title: "Aucune affaire trouvée",
+ },
+ filters: {
+ company: "Entreprise",
+ },
+ },
+ header: {
+ import_data: "Importer des données",
+ },
+ image_editor: {
+ change: "Changement",
+ drop_hint:
+ "Déposez un fichier à télécharger ou cliquez pour le sélectionner.",
+ editable_content: "Contenu modifiable",
+ title: "Télécharger et redimensionner l'image",
+ update_image: "Mettre à jour l'image",
+ },
+ import: {
+ action: {
+ download_error_report: "Téléchargez le rapport d'erreur",
+ import: "Importer",
+ import_another: "Importer un autre fichier",
+ },
+ error: {
+ unable: "Impossible d'importer ce fichier.",
+ },
+ idle: {
+ description_1:
+ "Vous pouvez importer des ventes, des entreprises, des contacts, des entreprises, des notes et des tâches.",
+ description_2:
+ "Les données doivent se trouver dans un fichier JSON correspondant à l'exemple suivant :",
+ },
+ status: {
+ all_success: "Tous les enregistrements ont été importés avec succès.",
+ complete: "Importation terminée.",
+ failed: "Échoué",
+ imported: "Importé",
+ in_progress: "Import en cours, veuillez ne pas quitter cette page.",
+ some_failed: "Certains enregistrements n'ont pas été importés.",
+ table_caption: "Statut d'importation",
+ },
+ title: "Importer des données",
+ },
+ notes: {
+ action: {
+ add: "Ajouter une note",
+ add_first: "Ajoutez votre première note",
+ delete: "Supprimer la note",
+ edit: "Modifier la note",
+ update: "Mettre à jour la note",
+ add_this: "Ajouter cette note",
+ },
+ deleted: "Note supprimée",
+ empty: "Aucune note pour l'instant",
+ note_for: "Note pour",
+ stepper: {
+ hint: "Accédez à une page de contact et ajoutez une note",
+ },
+ name: "Note |||| Notes",
+ forcedCaseName: "Note",
+ added: "Note ajoutée",
+ inputs: {
+ add_note: "Ajouter une note",
+ date: "Date",
+ options_hint: "(joindre des fichiers ou modifier les détails)",
+ reference_contact: "Contact",
+ reference_deal: "Affaire",
+ show_options: "Afficher les options",
+ },
+ },
+ sales: {
+ create: {
+ error:
+ "Une erreur s'est produite lors de la création de l'utilisateur.",
+ success:
+ "Utilisateur créé. Ils recevront prochainement un email pour définir leur mot de passe.",
+ title: "Créer un nouvel utilisateur",
+ },
+ name: "Utilisateur |||| Utilisateurs",
+ action: {
+ new: "Nouvel utilisateur",
+ },
+ fields: {
+ admin: "Admin",
+ disabled: "Désactivé",
+ },
+ },
+ settings: {
+ companies: {
+ sectors: "Secteurs",
+ },
+ dark_mode_logo: "Logo du mode sombre",
+ deals: {
+ categories: "Catégories",
+ pipeline_help:
+ "Sélectionnez les étapes de deal qui comptent comme deals de pipeline (terminés).",
+ pipeline_statuses: "Statuts des pipelines",
+ stages: "Étapes",
+ },
+ light_mode_logo: "Logo du mode clair",
+ notes: {
+ statuses: "Statuts",
+ },
+ reset_defaults: "Réinitialiser aux valeurs par défaut",
+ save_error: "Échec de l'enregistrement de la configuration",
+ saved: "Configuration enregistrée avec succès",
+ saving: "Enregistrement...",
+ tasks: {
+ types: "Types",
+ },
+ title: "Paramètres",
+ app_title: "Titre de l'application",
+ sections: {
+ branding: "Image de marque",
+ },
+ },
+ tasks: {
+ action: {
+ add: "Ajouter une tâche",
+ create: "Créer une tâche",
+ edit: "Modifier la tâche",
+ },
+ actions: {
+ postpone_next_week: "Reporté à la semaine prochaine",
+ postpone_tomorrow: "Reporter à demain",
+ title: "Actions de tâche",
+ },
+ added: "Tâche ajoutée",
+ deleted: "Tâche supprimée avec succès",
+ dialog: {
+ create: "Créer une nouvelle tâche",
+ create_for: "Créer une nouvelle tâche pour",
+ },
+ empty: "Aucune tâche pour l'instant",
+ empty_list_hint: "Les tâches ajoutées à vos contacts apparaîtront ici.",
+ fields: {
+ due: "échéance",
+ description: "Description",
+ },
+ filters: {
+ later: "Plus tard",
+ overdue: "En retard",
+ this_week: "Cette semaine",
+ today: "Aujourd'hui",
+ tomorrow: "Demain",
+ with_pending: "Avec des tâches en attente",
+ },
+ updated: "Tâche mise à jour",
+ name: "Tâche |||| Tâches",
+ forcedCaseName: "Tâche",
+ },
+ theme: {
+ dark: "Thème sombre",
+ dark_short: "Sombre",
+ light: "Thème clair",
+ light_short: "Clair",
+ system: "Thème système",
+ system_short: "Système",
+ },
+ language: "Langue",
+ navigation: {
+ label: "Navigation CRM",
+ },
+ tags: {
+ name: "Étiquette |||| Étiquettes",
+ dialog: {
+ color: "Couleur",
+ name_label: "Nom de l'étiquette",
+ name_placeholder: "Saisir le nom de l'étiquette",
+ },
+ },
+ profile: {
+ inbound: {
+ description_prefix:
+ "Vous pouvez commencer à envoyer des e-mails vers l'adresse de réception de votre serveur, par exemple en l'ajoutant au champ",
+ description_suffix:
+ "champ. Atomic CRM traitera les e-mails et ajoutera des notes aux contacts correspondants.",
+ title: "E-mail entrant",
+ },
+ password: {
+ change: "Changer le mot de passe",
+ },
+ password_reset_sent:
+ "Un e-mail de réinitialisation du mot de passe a été envoyé à votre adresse e-mail",
+ title: "Profil",
+ updated: "Votre profil a été mis à jour",
+ update_error: "Une erreur s'est produite. Veuillez réessayer",
+ },
+ },
+} as const;
diff --git a/src/components/atomic-crm/root/i18nProvider.test.ts b/src/components/atomic-crm/root/i18nProvider.test.ts
index 42bb0235..9762d339 100644
--- a/src/components/atomic-crm/root/i18nProvider.test.ts
+++ b/src/components/atomic-crm/root/i18nProvider.test.ts
@@ -32,4 +32,18 @@ describe("i18nProvider", () => {
"Consultez vos emails pour trouver le message de reinitialisation du mot de passe.",
);
});
+
+ it("translates recently added fr crm keys", async () => {
+ await i18nProvider.changeLocale("fr");
+
+ expect(i18nProvider.translate("crm.deals.empty.title")).toBe(
+ "Aucune affaire trouvée",
+ );
+ expect(i18nProvider.translate("crm.companies.filters.only_mine")).toBe(
+ "Seulement les entreprises que je gère",
+ );
+ expect(i18nProvider.translate("crm.companies.contacts.none")).toBe(
+ "Aucun contact",
+ );
+ });
});
diff --git a/src/components/atomic-crm/root/i18nProvider.tsx b/src/components/atomic-crm/root/i18nProvider.tsx
index 64170d5f..a3f7b92e 100644
--- a/src/components/atomic-crm/root/i18nProvider.tsx
+++ b/src/components/atomic-crm/root/i18nProvider.tsx
@@ -4,6 +4,8 @@ import englishMessages from "ra-language-english";
import frenchMessages from "ra-language-french";
import { raSupabaseEnglishMessages } from "ra-supabase-language-english";
import { raSupabaseFrenchMessages } from "ra-supabase-language-french";
+import { englishCrmMessages } from "./englishCrmMessages";
+import { frenchCrmMessages } from "./frenchCrmMessages";
const raSupabaseEnglishMessagesOverride = {
"ra-supabase": {
@@ -22,351 +24,6 @@ const raSupabaseFrenchMessagesOverride = {
},
};
-const englishCrmMessages = {
- crm: {
- language: "Language",
- common: {
- account_manager: "Account manager",
- at: "at",
- copied: "Copied!",
- copy: "Copy",
- loading: "Loading...",
- me: "Me",
- },
- navigation: {
- label: "CRM navigation",
- },
- companies: {
- name: "Company |||| Companies",
- forcedCaseName: "Company",
- action: {
- create: "Create Company",
- edit: "Edit company",
- new: "New Company",
- show: "Show company",
- },
- aside: {
- additional_info: "Additional info",
- company_info: "Company info",
- context: "Context",
- main_address: "Main address",
- },
- fields: {
- name: "Company name",
- revenue: "Revenue",
- sector: "Sector",
- size: "Size",
- tax_identifier: "Tax Identifier",
- },
- filters: {
- sector: "Sector",
- size: "Size",
- },
- },
- contacts: {
- name: "Contact |||| Contacts",
- forcedCaseName: "Contact",
- action: {
- edit: "Edit contact",
- new: "New Contact",
- show: "Show contact",
- },
- background: {
- added_on: "Added on",
- followed_by: "Followed by",
- },
- inputs: {
- email_addresses: "Email addresses",
- phone_numbers: "Phone numbers",
- linkedin_url: "LinkedIn URL",
- background_info: "Background info (bio, how you met, etc)",
- },
- import: {
- csv_file: "CSV File",
- contacts_label: "contact |||| contacts",
- },
- filters: {
- before_last_month: "Before last month",
- before_this_month: "Before this month",
- before_this_week: "Before this week",
- last_activity: "Last activity",
- managed_by_me: "Managed by me",
- search: "Search name, company...",
- status: "Status",
- tags: "Tags",
- this_week: "This week",
- today: "Today",
- },
- hot: {
- create: "Create contact",
- empty_change_status:
- 'Change the status of a contact by adding a note to that contact and clicking on "show options".',
- empty_hint: 'Contacts with a "hot" status will appear here.',
- title: "Hot Contacts",
- },
- },
- deals: {
- name: "Deal |||| Deals",
- action: {
- create: "Create deal",
- new: "New Deal",
- },
- filters: {
- company: "Company",
- },
- inputs: {
- name: "Deal name",
- contacts: "Contacts",
- category: "Category",
- },
- fields: {
- description: "Description",
- },
- },
- notes: {
- name: "Note |||| Notes",
- forcedCaseName: "Note",
- action: {
- add_this: "Add this note",
- },
- added: "Note added",
- inputs: {
- add_note: "Add a note",
- date: "Date",
- options_hint: "(attach files, or change details)",
- reference_contact: "Contact",
- reference_deal: "Deal",
- show_options: "Show options",
- },
- },
- sales: {
- name: "User |||| Users",
- action: {
- new: "New user",
- },
- fields: {
- admin: "Admin",
- disabled: "Disabled",
- },
- },
- settings: {
- title: "Settings",
- app_title: "App Title",
- sections: {
- branding: "Branding",
- },
- },
- tags: {
- name: "Tag |||| Tags",
- dialog: {
- color: "Color",
- name_label: "Tag name",
- name_placeholder: "Enter tag name",
- },
- },
- tasks: {
- name: "Task |||| Tasks",
- forcedCaseName: "Task",
- fields: {
- description: "Description",
- },
- filters: {
- with_pending: "With pending tasks",
- },
- },
- profile: {
- inbound: {
- description_prefix:
- "You can start sending emails to your server's inbound email address, e.g. by adding it to the",
- description_suffix:
- "field. Atomic CRM will process the emails and add notes to the corresponding contacts.",
- title: "Inbound email",
- },
- password: {
- change: "Change password",
- },
- password_reset_sent:
- "A reset password email has been sent to your email address",
- title: "Profile",
- updated: "Your profile has been updated",
- update_error: "An error occurred. Please try again",
- },
- },
-};
-
-const frenchCrmMessages = {
- crm: {
- language: "Langue",
- common: {
- account_manager: "Responsable de compte",
- at: "chez",
- copied: "Copié !",
- copy: "Copier",
- loading: "Chargement...",
- me: "Moi",
- },
- navigation: {
- label: "Navigation CRM",
- },
- companies: {
- name: "Entreprise |||| Entreprises",
- forcedCaseName: "Entreprise",
- action: {
- create: "Créer une entreprise",
- edit: "Modifier l'entreprise",
- new: "Nouvelle entreprise",
- show: "Afficher l'entreprise",
- },
- aside: {
- additional_info: "Informations supplémentaires",
- company_info: "Informations de l'entreprise",
- context: "Contexte",
- main_address: "Adresse principale",
- },
- fields: {
- name: "Nom de l'entreprise",
- revenue: "Chiffre d'affaires",
- sector: "Secteur",
- size: "Taille",
- tax_identifier: "Identifiant fiscal",
- },
- filters: {
- sector: "Secteur",
- size: "Taille",
- },
- },
- contacts: {
- name: "Contact |||| Contacts",
- forcedCaseName: "Contact",
- action: {
- edit: "Modifier le contact",
- new: "Nouveau contact",
- show: "Afficher le contact",
- },
- background: {
- added_on: "Ajouté le",
- followed_by: "Suivi par",
- },
- inputs: {
- email_addresses: "Adresses e-mail",
- phone_numbers: "Numéros de téléphone",
- linkedin_url: "URL LinkedIn",
- background_info:
- "Informations de contexte (bio, comment vous vous êtes rencontrés, etc.)",
- },
- import: {
- csv_file: "Fichier CSV",
- contacts_label: "contact |||| contacts",
- },
- filters: {
- before_last_month: "Avant le mois dernier",
- before_this_month: "Avant ce mois-ci",
- before_this_week: "Avant cette semaine",
- last_activity: "Dernière activité",
- managed_by_me: "Géré par moi",
- search: "Rechercher nom, entreprise...",
- status: "Statut",
- tags: "Étiquettes",
- this_week: "Cette semaine",
- today: "Aujourd'hui",
- },
- hot: {
- create: "Créer un contact",
- empty_change_status:
- 'Changez le statut d\'un contact en ajoutant une note à ce contact et en cliquant sur "afficher les options".',
- empty_hint: 'Les contacts avec un statut "chaud" apparaîtront ici.',
- title: "Contacts chauds",
- },
- },
- deals: {
- name: "Affaire |||| Affaires",
- action: {
- create: "Créer un deal",
- new: "Nouvelle affaire",
- },
- filters: {
- company: "Entreprise",
- },
- inputs: {
- name: "Nom du deal",
- contacts: "Contacts",
- category: "Catégorie",
- },
- fields: {
- description: "Description",
- },
- },
- notes: {
- name: "Note |||| Notes",
- forcedCaseName: "Note",
- action: {
- add_this: "Ajouter cette note",
- },
- added: "Note ajoutée",
- inputs: {
- add_note: "Ajouter une note",
- date: "Date",
- options_hint: "(joindre des fichiers ou modifier les détails)",
- reference_contact: "Contact",
- reference_deal: "Affaire",
- show_options: "Afficher les options",
- },
- },
- sales: {
- name: "Utilisateur |||| Utilisateurs",
- action: {
- new: "Nouvel utilisateur",
- },
- fields: {
- admin: "Admin",
- disabled: "Désactivé",
- },
- },
- settings: {
- title: "Paramètres",
- app_title: "Titre de l'application",
- sections: {
- branding: "Image de marque",
- },
- },
- tags: {
- name: "Étiquette |||| Étiquettes",
- dialog: {
- color: "Couleur",
- name_label: "Nom de l'étiquette",
- name_placeholder: "Saisir le nom de l'étiquette",
- },
- },
- tasks: {
- name: "Tâche |||| Tâches",
- forcedCaseName: "Tâche",
- fields: {
- description: "Description",
- },
- filters: {
- with_pending: "Avec des tâches en attente",
- },
- },
- profile: {
- inbound: {
- description_prefix:
- "Vous pouvez commencer à envoyer des e-mails vers l'adresse de réception de votre serveur, par exemple en l'ajoutant au champ",
- description_suffix:
- "champ. Atomic CRM traitera les e-mails et ajoutera des notes aux contacts correspondants.",
- title: "E-mail entrant",
- },
- password: {
- change: "Changer le mot de passe",
- },
- password_reset_sent:
- "Un e-mail de réinitialisation du mot de passe a été envoyé à votre adresse e-mail",
- title: "Profil",
- updated: "Votre profil a été mis à jour",
- update_error: "Une erreur s'est produite. Veuillez réessayer",
- },
- },
-};
-
const englishCatalog = mergeTranslations(
englishMessages,
raSupabaseEnglishMessages,