Skip to content

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

Move crm translation assets to providers commons

Anibal Svarcas48dfc74d6269
diff --git a/src/components/atomic-crm/root/englishCrmMessages.ts b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
similarity index 98%
rename from src/components/atomic-crm/root/englishCrmMessages.ts
rename to src/components/atomic-crm/providers/commons/englishCrmMessages.ts
index 127e59d5..4b45b3c2 100644
--- a/src/components/atomic-crm/root/englishCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
@@ -93,6 +93,8 @@ export const englishCrmMessages = {
followed_by: "Followed by %{name}",
followed_by_you: "Followed by you",
},
+ position_at: "%{title} at",
+ position_at_company: "%{title} at %{company}",
empty: {
description: "It seems your contact list is empty.",
title: "No contacts found",
@@ -203,10 +205,6 @@ export const englishCrmMessages = {
description: "It seems your deal list is empty.",
title: "No deals found",
},
- stage: {
- lost: "Lost",
- won: "Won",
- },
},
notes: {
name: "Note |||| Notes",
@@ -358,14 +356,12 @@ export const englishCrmMessages = {
last_activity: "last activity",
load_more: "Load more",
misc: "Misc",
- on: "on",
past: "Past",
read_more: "Read more",
regarding: "Re:",
retry: "Retry",
show_less: "Show less",
with: "with",
- at: "at",
copied: "Copied!",
copy: "Copy",
loading: "Loading...",
@@ -383,6 +379,7 @@ export const englishCrmMessages = {
you_added_note_about_deal: "You added a note about deal",
added_deal: "%{name} added deal",
you_added_deal: "You added deal",
+ at_company: "at",
to: "to",
load_more: "Load more activity",
},
@@ -392,6 +389,7 @@ export const englishCrmMessages = {
latest_activity: "Latest Activity",
latest_activity_error: "Error loading latest activity",
latest_notes: "My Latest Notes",
+ latest_notes_added_ago: "added %{timeAgo}",
stepper: {
install: "Install Atomic CRM",
progress: "%{step}/3 done",
@@ -490,10 +488,8 @@ export const englishCrmMessages = {
},
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.",
+ description:
+ "You can start sending emails to your server's inbound email address, e.g. by adding it to the %{field} field. Atomic CRM will process the emails and add notes to the corresponding contacts.",
title: "Inbound email",
},
password: {
diff --git a/src/components/atomic-crm/root/frenchCrmMessages.ts b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
similarity index 98%
rename from src/components/atomic-crm/root/frenchCrmMessages.ts
rename to src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
index 100a1735..2a783581 100644
--- a/src/components/atomic-crm/root/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
@@ -96,6 +96,8 @@ export const frenchCrmMessages = {
followed_by: "Suivi par %{name}",
followed_by_you: "Suivi par vous",
},
+ position_at: "%{title} chez",
+ position_at_company: "%{title} chez %{company}",
empty: {
description: "Il semble que votre liste de contacts soit vide.",
title: "Aucun contact trouvé",
@@ -207,10 +209,6 @@ export const frenchCrmMessages = {
description: "Il semble que votre liste d'affaires soit vide.",
title: "Aucune affaire trouvée",
},
- stage: {
- lost: "Perdu",
- won: "Gagné",
- },
},
notes: {
name: "Note |||| Notes",
@@ -363,7 +361,6 @@ export const frenchCrmMessages = {
last_activity: "dernière activité",
load_more: "Charger plus",
misc: "Divers",
- on: "sur",
past: "Passé",
read_more: "En savoir plus",
regarding: "Concernant:",
@@ -371,7 +368,6 @@ export const frenchCrmMessages = {
show_less: "Afficher moins",
task_count: "tâche |||| tâches",
with: "avec",
- at: "chez",
copied: "Copié !",
copy: "Copier",
loading: "Chargement...",
@@ -388,6 +384,7 @@ export const frenchCrmMessages = {
you_added_note_about_deal: "Vous avez ajouté une note sur l'affaire",
added_deal: "%{name} a ajouté l'affaire",
you_added_deal: "Vous avez ajouté l'affaire",
+ at_company: "chez",
to: "à",
load_more: "Charger plus d'activité",
},
@@ -398,6 +395,7 @@ export const frenchCrmMessages = {
latest_activity_error:
"Erreur lors du chargement de la dernière activité",
latest_notes: "Mes dernières notes",
+ latest_notes_added_ago: "ajouté %{timeAgo}",
stepper: {
install: "Installer Atomic CRM",
progress: "%{step}/3 terminé",
@@ -496,10 +494,8 @@ export const frenchCrmMessages = {
},
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.",
+ description:
+ "Vous pouvez commencer à envoyer des e-mails vers l'adresse de réception de votre serveur, par exemple en l'ajoutant au champ %{field}. Atomic CRM traitera les e-mails et ajoutera des notes aux contacts correspondants.",
title: "E-mail entrant",
},
password: {
diff --git a/src/components/atomic-crm/root/i18nProvider.test.ts b/src/components/atomic-crm/providers/commons/i18nProvider.test.ts
similarity index 100%
rename from src/components/atomic-crm/root/i18nProvider.test.ts
rename to src/components/atomic-crm/providers/commons/i18nProvider.test.ts
diff --git a/src/components/atomic-crm/root/i18nProvider.tsx b/src/components/atomic-crm/providers/commons/i18nProvider.ts
similarity index 100%
rename from src/components/atomic-crm/root/i18nProvider.tsx
rename to src/components/atomic-crm/providers/commons/i18nProvider.ts
diff --git a/src/components/atomic-crm/root/CRM.tsx b/src/components/atomic-crm/root/CRM.tsx
index c89b5d20..42bb781b 100644
--- a/src/components/atomic-crm/root/CRM.tsx
+++ b/src/components/atomic-crm/root/CRM.tsx
@@ -48,7 +48,7 @@ import {
defaultTaskTypes,
defaultTitle,
} from "./defaultConfiguration";
-import { i18nProvider } from "./i18nProvider";
+import { i18nProvider } from "../providers/commons/i18nProvider";
import { StartPage } from "../login/StartPage.tsx";
import { useIsMobile } from "@/hooks/use-mobile.ts";
import { MobileTasksList } from "../tasks/MobileTasksList.tsx";
diff --git a/src/test/browser/atomic-crm/crmUiHarness.tsx b/src/test/browser/atomic-crm/crmUiHarness.tsx
index d2954878..82b4f9b0 100644
--- a/src/test/browser/atomic-crm/crmUiHarness.tsx
+++ b/src/test/browser/atomic-crm/crmUiHarness.tsx
@@ -11,7 +11,7 @@ import { DEFAULT_USER } from "@/components/atomic-crm/providers/fakerest/authPro
import type { Db } from "@/components/atomic-crm/providers/fakerest/dataGenerator/types";
import { CONFIGURATION_STORE_KEY } from "@/components/atomic-crm/root/ConfigurationContext";
import { defaultConfiguration } from "@/components/atomic-crm/root/defaultConfiguration";
-import { i18nProvider } from "@/components/atomic-crm/root/i18nProvider";
+import { i18nProvider } from "@/components/atomic-crm/providers/commons/i18nProvider";
import { TaskCreateSheet } from "@/components/atomic-crm/tasks/TaskCreateSheet";
import type {
Company,