Skip to content

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

Remove duplicate or useless translations

François Zaninottofa1a3ff81ea0
diff --git a/registry.json b/registry.json
index a25339d3..768868cd 100644
--- a/registry.json
+++ b/registry.json
@@ -321,6 +321,10 @@
"path": "src/components/atomic-crm/providers/commons/canAccess.ts",
"type": "registry:component"
},
+ {
+ "path": "src/components/atomic-crm/providers/commons/attachments.ts",
+ "type": "registry:component"
+ },
{
"path": "src/components/atomic-crm/providers/commons/activity.ts",
"type": "registry:component"
diff --git a/src/components/atomic-crm/dashboard/Welcome.tsx b/src/components/atomic-crm/dashboard/Welcome.tsx
index 756f2cda..f05215ad 100644
--- a/src/components/atomic-crm/dashboard/Welcome.tsx
+++ b/src/components/atomic-crm/dashboard/Welcome.tsx
@@ -1,16 +1,10 @@
import { Card, CardContent, CardHeader, CardTitle } from "@/components/ui/card";
-import { useTranslate } from "ra-core";
export const Welcome = () => {
- const translate = useTranslate();
return (
<Card>
<CardHeader className="px-4">
- <CardTitle>
- {translate("crm.dashboard.welcome.title", {
- _: "Your CRM Starter Kit",
- })}
- </CardTitle>
+ <CardTitle>Your CRM Starter Kit</CardTitle>
</CardHeader>
<CardContent className="px-4">
<p className="text-sm mb-4">
@@ -20,26 +14,21 @@ export const Welcome = () => {
>
Atomic CRM
</a>{" "}
- {translate("crm.dashboard.welcome.paragraph_1", {
- _: "is a template designed to help you quickly build your own CRM.",
- })}
+ is a template designed to help you quickly build your own CRM.
</p>
<p className="text-sm mb-4">
- {translate("crm.dashboard.welcome.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.",
- })}
+ 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.
</p>
<p className="text-sm">
- {translate("crm.dashboard.welcome.powered_by", { _: "Powered by" })}{" "}
+ Powered by
<a
href="https://marmelab.com/shadcn-admin-kit"
className="underline hover:no-underline"
>
shadcn-admin-kit
</a>
- {translate("crm.dashboard.welcome.paragraph_3", {
- _: ", Atomic CRM is fully open-source. You can find the code at",
- })}{" "}
+ Atomic CRM is fully open-source. You can find the code at{" "}
<a
href="https://github.com/marmelab/atomic-crm"
className="underline hover:no-underline"
diff --git a/src/components/atomic-crm/root/englishCrmMessages.ts b/src/components/atomic-crm/root/englishCrmMessages.ts
index 7737dff9..547c4e38 100644
--- a/src/components/atomic-crm/root/englishCrmMessages.ts
+++ b/src/components/atomic-crm/root/englishCrmMessages.ts
@@ -174,25 +174,6 @@ export const englishCrmMessages = {
context: "Context",
main_address: "Main address",
},
- fields: {
- name: "Company name",
- website: "Website",
- linkedin_url: "LinkedIn URL",
- phone_number: "Phone number",
- created_at: "Created at",
- nb_contacts: "Number of contacts",
- revenue: "Revenue",
- sector: "Sector",
- size: "Size",
- tax_identifier: "Tax Identifier",
- address: "Address",
- city: "City",
- zipcode: "Zip code",
- state_abbr: "State",
- country: "Country",
- description: "Description",
- context_links: "Context links",
- },
filters: {
only_mine: "Only companies I manage",
sector: "Sector",
@@ -275,11 +256,6 @@ export const englishCrmMessages = {
list: {
error_loading: "Error loading contacts",
},
- fields: {
- first_name: "First name",
- last_name: "Last name",
- last_seen: "Last seen",
- },
merge: {
action: "Merge with another contact",
confirm: "Merge Contacts",
@@ -331,16 +307,6 @@ export const englishCrmMessages = {
whats_next: "What's next?",
},
upcoming_tasks: "Upcoming Tasks",
- 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: {
@@ -359,18 +325,8 @@ export const englishCrmMessages = {
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",
@@ -487,13 +443,6 @@ export const englishCrmMessages = {
action: {
new: "New user",
},
- fields: {
- first_name: "First name",
- last_name: "Last name",
- email: "Email",
- admin: "Admin",
- disabled: "Disabled",
- },
},
settings: {
companies: {
@@ -557,12 +506,6 @@ export const englishCrmMessages = {
},
empty: "No tasks yet",
empty_list_hint: "Tasks added to your contacts will appear here.",
- fields: {
- due: "due",
- due_date: "Due date",
- description: "Description",
- type: "Type",
- },
filters: {
later: "Later",
overdue: "Overdue",
diff --git a/src/components/atomic-crm/root/frenchCrmMessages.ts b/src/components/atomic-crm/root/frenchCrmMessages.ts
index f6eebae4..6df3c0de 100644
--- a/src/components/atomic-crm/root/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/root/frenchCrmMessages.ts
@@ -176,25 +176,6 @@ export const frenchCrmMessages = {
context: "Contexte",
main_address: "Adresse principale",
},
- fields: {
- name: "Nom de l'entreprise",
- website: "Site web",
- linkedin_url: "LinkedIn",
- phone_number: "Numéro de téléphone",
- created_at: "Date de création",
- nb_contacts: "Nombre de contacts",
- revenue: "Chiffre d'affaires",
- sector: "Secteur",
- size: "Taille",
- tax_identifier: "Identifiant fiscal",
- address: "Adresse",
- city: "Ville",
- zipcode: "Code postal",
- state_abbr: "État",
- country: "Pays",
- description: "Description",
- context_links: "URLs de contexte",
- },
filters: {
only_mine: "Seulement les entreprises que je gère",
sector: "Secteur",
@@ -279,11 +260,6 @@ export const frenchCrmMessages = {
list: {
error_loading: "Erreur lors du chargement des contacts",
},
- fields: {
- first_name: "Prénom",
- last_name: "Nom",
- last_seen: "Dernière activité",
- },
merge: {
action: "Fusionner avec un autre contact",
confirm: "Fusionner les contacts",
@@ -336,16 +312,6 @@ export const frenchCrmMessages = {
whats_next: "Et ensuite ?",
},
upcoming_tasks: "Tâches à venir",
- 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: {
@@ -483,13 +449,6 @@ export const frenchCrmMessages = {
action: {
new: "Nouvel utilisateur",
},
- fields: {
- first_name: "Prénom",
- last_name: "Nom",
- email: "E-mail",
- admin: "Admin",
- disabled: "Désactivé",
- },
},
settings: {
companies: {
@@ -553,12 +512,6 @@ export const frenchCrmMessages = {
},
empty: "Aucune tâche pour l'instant",
empty_list_hint: "Les tâches ajoutées à vos contacts apparaîtront ici.",
- fields: {
- due: "échéance",
- due_date: "Date d'échéance",
- description: "Description",
- type: "Type",
- },
filters: {
later: "Plus tard",
overdue: "En retard",