Skip to content

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

Move resource translations to the resources namespace

François Zaninottobf31e83de851
diff --git a/src/components/atomic-crm/companies/AutocompleteCompanyInput.tsx b/src/components/atomic-crm/companies/AutocompleteCompanyInput.tsx
index 2a29cd56..57ef0873 100644
--- a/src/components/atomic-crm/companies/AutocompleteCompanyInput.tsx
+++ b/src/components/atomic-crm/companies/AutocompleteCompanyInput.tsx
@@ -27,7 +27,7 @@ export const AutocompleteCompanyInput = ({
);
return newCompany;
} catch {
- notify("crm.companies.autocomplete.create_error", {
+ notify("resources.companies.autocomplete.create_error", {
type: "error",
messageArgs: {
_: "An error occurred while creating the company",
@@ -43,10 +43,13 @@ export const AutocompleteCompanyInput = ({
optionText="name"
helperText={false}
onCreate={handleCreateCompany}
- createItemLabel={translate("crm.companies.autocomplete.create_item", {
- _: "Create %{item}",
- })}
- createLabel={translate("crm.companies.autocomplete.create_label", {
+ createItemLabel={translate(
+ "resources.companies.autocomplete.create_item",
+ {
+ _: "Create %{item}",
+ },
+ )}
+ createLabel={translate("resources.companies.autocomplete.create_label", {
_: "Start typing to create a new company",
})}
validate={validate}
diff --git a/src/components/atomic-crm/companies/CompanyAside.tsx b/src/components/atomic-crm/companies/CompanyAside.tsx
index a0184ebe..53b2b209 100644
--- a/src/components/atomic-crm/companies/CompanyAside.tsx
+++ b/src/components/atomic-crm/companies/CompanyAside.tsx
@@ -30,13 +30,13 @@ export const CompanyAside = ({ link = "edit" }: CompanyAsideProps) => {
<div className="flex flex-row space-x-1">
{link === "edit" ? (
<EditButton
- label={translate("crm.companies.action.edit", {
+ label={translate("resources.companies.action.edit", {
_: "Edit company",
})}
/>
) : (
<ShowButton
- label={translate("crm.companies.action.show", {
+ label={translate("resources.companies.action.show", {
_: "Show company",
})}
/>
@@ -71,7 +71,7 @@ export const CompanyInfo = ({ record }: { record: Company }) => {
return (
<AsideSection
- title={translate("crm.companies.aside.company_info", {
+ title={translate("resources.companies.aside.company_info", {
_: "Company info",
})}
>
@@ -128,7 +128,7 @@ export const ContextInfo = ({ record }: { record: Company }) => {
return (
<AsideSection
- title={translate("crm.companies.aside.context", { _: "Context" })}
+ title={translate("resources.companies.aside.context", { _: "Context" })}
>
{sectorLabel && (
<span>
@@ -173,7 +173,7 @@ export const AddressInfo = ({ record }: { record: Company }) => {
return (
<AsideSection
- title={translate("crm.companies.aside.main_address", {
+ title={translate("resources.companies.aside.main_address", {
_: "Main address",
})}
noGap
@@ -204,7 +204,7 @@ export const AdditionalInfo = ({ record }: { record: Company }) => {
return (
<AsideSection
- title={translate("crm.companies.aside.additional_info", {
+ title={translate("resources.companies.aside.additional_info", {
_: "Additional info",
})}
>
@@ -231,7 +231,7 @@ export const AdditionalInfo = ({ record }: { record: Company }) => {
)}
{record.sales_id !== null && (
<div className="inline-flex text-sm text-muted-foreground mb-1">
- {translate("crm.contacts.background.followed_by", {
+ {translate("resources.contacts.background.followed_by", {
_: "Followed by",
})}
&nbsp;
@@ -242,7 +242,9 @@ export const AdditionalInfo = ({ record }: { record: Company }) => {
)}
{record.created_at && (
<p className="text-sm text-muted-foreground mb-1">
- {translate("crm.contacts.background.added_on", { _: "Added on" })}{" "}
+ {translate("resources.contacts.background.added_on", {
+ _: "Added on",
+ })}{" "}
<DateField
source="created_at"
record={record}
diff --git a/src/components/atomic-crm/companies/CompanyCard.tsx b/src/components/atomic-crm/companies/CompanyCard.tsx
index 213593ae..e8a74f1f 100644
--- a/src/components/atomic-crm/companies/CompanyCard.tsx
+++ b/src/components/atomic-crm/companies/CompanyCard.tsx
@@ -54,7 +54,7 @@ export const CompanyCard = (props: { record?: Company }) => {
<DollarSign className="w-4 h-4 text-muted-foreground" />
<span className="text-sm font-medium">{record.nb_deals}</span>
<span className="text-xs text-muted-foreground">
- {translate("crm.deals.name", {
+ {translate("resources.deals.name", {
smart_count: record.nb_deals,
_: "Deal |||| Deals",
})}
diff --git a/src/components/atomic-crm/companies/CompanyCreate.tsx b/src/components/atomic-crm/companies/CompanyCreate.tsx
index f8ad3bf9..412e3df1 100644
--- a/src/components/atomic-crm/companies/CompanyCreate.tsx
+++ b/src/components/atomic-crm/companies/CompanyCreate.tsx
@@ -31,7 +31,7 @@ export const CompanyCreate = () => {
>
<CancelButton />
<SaveButton
- label={translate("crm.companies.action.create", {
+ label={translate("resources.companies.action.create", {
_: "Create Company",
})}
/>
diff --git a/src/components/atomic-crm/companies/CompanyEmpty.tsx b/src/components/atomic-crm/companies/CompanyEmpty.tsx
index d1b3e2f3..14b75ed5 100644
--- a/src/components/atomic-crm/companies/CompanyEmpty.tsx
+++ b/src/components/atomic-crm/companies/CompanyEmpty.tsx
@@ -15,22 +15,24 @@ export const CompanyEmpty = () => {
>
<img
src="./img/empty.svg"
- alt={translate("crm.companies.empty.title", {
+ alt={translate("resources.companies.empty.title", {
_: "No companies found",
})}
/>
<div className="flex flex-col gap-0 items-center">
<h6 className="text-lg font-bold">
- {translate("crm.companies.empty.title", { _: "No companies found" })}
+ {translate("resources.companies.empty.title", {
+ _: "No companies found",
+ })}
</h6>
<p className="text-sm text-center text-muted-foreground mb-4">
- {translate("crm.companies.empty.description", {
+ {translate("resources.companies.empty.description", {
_: "It seems your company list is empty.",
})}
</p>
</div>
<div className="flex space-x-2">
- <CreateButton label="crm.companies.action.create" />
+ <CreateButton label="resources.companies.action.create" />
</div>
</div>
);
diff --git a/src/components/atomic-crm/companies/CompanyInputs.tsx b/src/components/atomic-crm/companies/CompanyInputs.tsx
index 1dc0b85d..f9755214 100644
--- a/src/components/atomic-crm/companies/CompanyInputs.tsx
+++ b/src/components/atomic-crm/companies/CompanyInputs.tsx
@@ -80,7 +80,7 @@ const CompanyContactInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.companies.inputs.contact", { _: "Contact" })}
+ {translate("resources.companies.inputs.contact", { _: "Contact" })}
</h6>
<TextInput source="website" helperText={false} validate={isUrl} />
<TextInput
@@ -103,7 +103,7 @@ const CompanyContextInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.companies.inputs.context", { _: "Context" })}
+ {translate("resources.companies.inputs.context", { _: "Context" })}
</h6>
<SelectInput
source="sector"
@@ -124,7 +124,7 @@ const CompanyAddressInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.companies.inputs.address", { _: "Address" })}
+ {translate("resources.companies.inputs.address", { _: "Address" })}
</h6>
<TextInput source="address" helperText={false} />
<TextInput source="city" helperText={false} />
@@ -140,7 +140,7 @@ const CompanyAdditionalInformationInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.companies.inputs.additional_information", {
+ {translate("resources.companies.inputs.additional_information", {
_: "Additional information",
})}
</h6>
diff --git a/src/components/atomic-crm/companies/CompanyList.tsx b/src/components/atomic-crm/companies/CompanyList.tsx
index c4cdeb56..b6c5009f 100644
--- a/src/components/atomic-crm/companies/CompanyList.tsx
+++ b/src/components/atomic-crm/companies/CompanyList.tsx
@@ -50,7 +50,9 @@ const CompanyListActions = () => {
<SortButton fields={["name", "created_at", "nb_contacts"]} />
<ExportButton />
<CreateButton
- label={translate("crm.companies.action.new", { _: "New Company" })}
+ label={translate("resources.companies.action.new", {
+ _: "New Company",
+ })}
/>
</TopToolbar>
);
diff --git a/src/components/atomic-crm/companies/CompanyListFilter.tsx b/src/components/atomic-crm/companies/CompanyListFilter.tsx
index 3351bd20..b95e2a15 100644
--- a/src/components/atomic-crm/companies/CompanyListFilter.tsx
+++ b/src/components/atomic-crm/companies/CompanyListFilter.tsx
@@ -24,7 +24,7 @@ export const CompanyListFilter = () => {
<FilterCategory
icon={<Building className="h-4 w-4" />}
- label={translate("crm.companies.filters.size", { _: "Size" })}
+ label={translate("resources.companies.filters.size", { _: "Size" })}
>
{translatedSizes.map((size) => (
<ToggleFilterButton
@@ -38,7 +38,7 @@ export const CompanyListFilter = () => {
<FilterCategory
icon={<Truck className="h-4 w-4" />}
- label={translate("crm.companies.filters.sector", { _: "Sector" })}
+ label={translate("resources.companies.filters.sector", { _: "Sector" })}
>
{companySectors.map((sector) => (
<ToggleFilterButton
diff --git a/src/components/atomic-crm/companies/CompanyShow.tsx b/src/components/atomic-crm/companies/CompanyShow.tsx
index f9eb1086..ea217e70 100644
--- a/src/components/atomic-crm/companies/CompanyShow.tsx
+++ b/src/components/atomic-crm/companies/CompanyShow.tsx
@@ -63,7 +63,7 @@ const CompanyShowContentMobile = () => {
<div className="flex flex-1">
<Link to="/">
<h1 className="text-xl font-semibold">
- {translate("crm.companies.forcedCaseName", {
+ {translate("resources.companies.forcedCaseName", {
_: "Company",
})}
</h1>
@@ -126,22 +126,24 @@ const CompanyShowContent = () => {
<TabsTrigger value="contacts">
{record.nb_contacts
? record.nb_contacts === 1
- ? translate("crm.companies.contacts.one", {
+ ? translate("resources.companies.contacts.one", {
_: "1 Contact",
})
- : translate("crm.companies.contacts.many", {
+ : translate("resources.companies.contacts.many", {
smart_count: record.nb_contacts,
_: `${record.nb_contacts} Contacts`,
})
- : translate("crm.companies.contacts.none", {
+ : translate("resources.companies.contacts.none", {
_: "No Contacts",
})}
</TabsTrigger>
{record.nb_deals ? (
<TabsTrigger value="deals">
{record.nb_deals === 1
- ? translate("crm.companies.deals.one", { _: "1 deal" })
- : translate("crm.companies.deals.many", {
+ ? translate("resources.companies.deals.one", {
+ _: "1 deal",
+ })
+ : translate("resources.companies.deals.many", {
smart_count: record.nb_deals,
_: `${record.nb_deals} deals`,
})}
@@ -269,7 +271,7 @@ const CreateRelatedContactButton = () => {
className="flex items-center gap-2"
>
<UserPlus className="h-4 w-4" />
- {translate("crm.contacts.action.add", { _: "Add contact" })}
+ {translate("resources.contacts.action.add", { _: "Add contact" })}
</RouterLink>
</Button>
);
diff --git a/src/components/atomic-crm/companies/GridList.tsx b/src/components/atomic-crm/companies/GridList.tsx
index 1ecaa701..cb311234 100644
--- a/src/components/atomic-crm/companies/GridList.tsx
+++ b/src/components/atomic-crm/companies/GridList.tsx
@@ -38,7 +38,9 @@ const LoadedGridList = () => {
{data.length === 0 && (
<div className="p-2">
- {translate("crm.companies.empty.title", { _: "No companies found" })}
+ {translate("resources.companies.empty.title", {
+ _: "No companies found",
+ })}
</div>
)}
</div>
diff --git a/src/components/atomic-crm/companies/getTranslatedCompanySizeLabel.ts b/src/components/atomic-crm/companies/getTranslatedCompanySizeLabel.ts
index 28553bb2..3bd2668d 100644
--- a/src/components/atomic-crm/companies/getTranslatedCompanySizeLabel.ts
+++ b/src/components/atomic-crm/companies/getTranslatedCompanySizeLabel.ts
@@ -9,11 +9,11 @@ const defaultCompanySizeLabels: Record<number, string> = {
};
const companySizeTranslationKeys: Record<number, string> = {
- 1: "crm.companies.sizes.one_employee",
- 10: "crm.companies.sizes.two_to_nine_employees",
- 50: "crm.companies.sizes.ten_to_forty_nine_employees",
- 250: "crm.companies.sizes.fifty_to_two_hundred_forty_nine_employees",
- 500: "crm.companies.sizes.two_hundred_fifty_or_more_employees",
+ 1: "resources.companies.sizes.one_employee",
+ 10: "resources.companies.sizes.two_to_nine_employees",
+ 50: "resources.companies.sizes.ten_to_forty_nine_employees",
+ 250: "resources.companies.sizes.fifty_to_two_hundred_forty_nine_employees",
+ 500: "resources.companies.sizes.two_hundred_fifty_or_more_employees",
};
export const getTranslatedCompanySizeLabel = (
diff --git a/src/components/atomic-crm/contacts/ContactAside.tsx b/src/components/atomic-crm/contacts/ContactAside.tsx
index 327efecb..7357846e 100644
--- a/src/components/atomic-crm/contacts/ContactAside.tsx
+++ b/src/components/atomic-crm/contacts/ContactAside.tsx
@@ -24,13 +24,13 @@ export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {
<div className="mb-4 -ml-1">
{link === "edit" ? (
<EditButton
- label={translate("crm.contacts.action.edit", {
+ label={translate("resources.contacts.action.edit", {
_: "Edit contact",
})}
/>
) : (
<ShowButton
- label={translate("crm.contacts.action.show", {
+ label={translate("resources.contacts.action.show", {
_: "Show contact",
})}
/>
@@ -38,7 +38,7 @@ export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {
</div>
<AsideSection
- title={translate("crm.contacts.inputs.personal_info", {
+ title={translate("resources.contacts.inputs.personal_info", {
_: "Personal info",
})}
>
@@ -46,7 +46,7 @@ export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {
</AsideSection>
<AsideSection
- title={translate("crm.contacts.inputs.background_info_short", {
+ title={translate("resources.contacts.inputs.background_info_short", {
_: "Background info",
})}
>
@@ -54,13 +54,16 @@ export const ContactAside = ({ link = "edit" }: { link?: "edit" | "show" }) => {
</AsideSection>
<AsideSection
- title={translate("crm.tags.name", { smart_count: 2, _: "Tags" })}
+ title={translate("resources.tags.name", { smart_count: 2, _: "Tags" })}
>
<TagsListEdit />
</AsideSection>
<AsideSection
- title={translate("crm.tasks.name", { smart_count: 2, _: "Tasks" })}
+ title={translate("resources.tasks.name", {
+ smart_count: 2,
+ _: "Tasks",
+ })}
>
<ReferenceManyField
target="contact_id"
diff --git a/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx b/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx
index 387c3784..674d5c3e 100644
--- a/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx
+++ b/src/components/atomic-crm/contacts/ContactBackgroundInfo.tsx
@@ -38,7 +38,9 @@ export const ContactBackgroundInfo = () => {
/>
<div className="text-muted-foreground md:py-0.5">
<span className="text-sm">
- {translate("crm.contacts.background.added_on", { _: "Added on" })}
+ {translate("resources.contacts.background.added_on", {
+ _: "Added on",
+ })}
</span>{" "}
<DateField
source="first_seen"
@@ -49,7 +51,7 @@ export const ContactBackgroundInfo = () => {
<div className="text-muted-foreground md:py-0.5">
<span className="text-sm">
- {translate("crm.contacts.background.last_activity_on", {
+ {translate("resources.contacts.background.last_activity_on", {
date: formattedLastSeen,
_: `Last activity on ${formattedLastSeen}`,
})}
@@ -57,7 +59,7 @@ export const ContactBackgroundInfo = () => {
</div>
<div className="inline-flex text-muted-foreground text-sm md:py-0.5">
- {translate("crm.contacts.background.followed_by", {
+ {translate("resources.contacts.background.followed_by", {
_: "Followed by",
})}
&nbsp;
diff --git a/src/components/atomic-crm/contacts/ContactCreateSheet.tsx b/src/components/atomic-crm/contacts/ContactCreateSheet.tsx
index 42821f2b..24ab7fcc 100644
--- a/src/components/atomic-crm/contacts/ContactCreateSheet.tsx
+++ b/src/components/atomic-crm/contacts/ContactCreateSheet.tsx
@@ -17,7 +17,7 @@ export const ContactCreateSheet = ({
return (
<CreateSheet
resource="contacts"
- title={translate("crm.contacts.action.new", { _: "New Contact" })}
+ title={translate("resources.contacts.action.new", { _: "New Contact" })}
defaultValues={{ sales_id: identity?.id }}
transform={(data: Contact) => ({
...data,
diff --git a/src/components/atomic-crm/contacts/ContactEditSheet.tsx b/src/components/atomic-crm/contacts/ContactEditSheet.tsx
index 643525c9..db468bd6 100644
--- a/src/components/atomic-crm/contacts/ContactEditSheet.tsx
+++ b/src/components/atomic-crm/contacts/ContactEditSheet.tsx
@@ -20,7 +20,7 @@ export const ContactEditSheet = ({
id={contactId}
title={
<h1 className="text-xl font-semibold truncate pr-10">
- {translate("crm.contacts.action.edit", { _: "Edit contact" })}{" "}
+ {translate("resources.contacts.action.edit", { _: "Edit contact" })}{" "}
<RecordRepresentation />
</h1>
}
diff --git a/src/components/atomic-crm/contacts/ContactEmpty.tsx b/src/components/atomic-crm/contacts/ContactEmpty.tsx
index c9a2db0e..13fd8d37 100644
--- a/src/components/atomic-crm/contacts/ContactEmpty.tsx
+++ b/src/components/atomic-crm/contacts/ContactEmpty.tsx
@@ -25,16 +25,18 @@ export const ContactEmpty = () => {
>
<img
src="./img/empty.svg"
- alt={translate("crm.contacts.empty.title", {
+ alt={translate("resources.contacts.empty.title", {
_: "No contacts found",
})}
/>
<div className="flex flex-col gap-0 items-center">
<h6 className="text-lg font-bold">
- {translate("crm.contacts.empty.title", { _: "No contacts found" })}
+ {translate("resources.contacts.empty.title", {
+ _: "No contacts found",
+ })}
</h6>
<p className="text-sm text-muted-foreground text-center mb-4">
- {translate("crm.contacts.empty.description", {
+ {translate("resources.contacts.empty.description", {
_: "It seems your contact list is empty.",
})}
</p>
@@ -47,11 +49,11 @@ export const ContactEmpty = () => {
className="gap-2"
>
<Plus className="h-4 w-4" />
- {translate("crm.contacts.action.new", { _: "New Contact" })}
+ {translate("resources.contacts.action.new", { _: "New Contact" })}
</Button>
) : (
<>
- <CreateButton label="crm.contacts.action.new" />
+ <CreateButton label="resources.contacts.action.new" />
<ContactImportButton />
</>
)}
diff --git a/src/components/atomic-crm/contacts/ContactImportButton.tsx b/src/components/atomic-crm/contacts/ContactImportButton.tsx
index a6655674..f7ed225f 100644
--- a/src/components/atomic-crm/contacts/ContactImportButton.tsx
+++ b/src/components/atomic-crm/contacts/ContactImportButton.tsx
@@ -40,7 +40,7 @@ export const ContactImportButton = () => {
className="flex items-center gap-2 cursor-pointer"
>
<Upload />{" "}
- {translate("crm.contacts.import.button", { _: "Import CSV" })}
+ {translate("resources.contacts.import.button", { _: "Import CSV" })}
</Button>
<ContactImportDialog open={modalOpen} onClose={handleCloseModal} />
</>
@@ -111,18 +111,20 @@ export function ContactImportDialog({
<Alert>
<AlertDescription className="flex flex-row gap-4">
<Loader2 className="h-5 w-5 animate-spin" />
- {translate("crm.contacts.import.running", {
+ {translate("resources.contacts.import.running", {
_: "The import is running, please do not close this tab.",
})}
</AlertDescription>
</Alert>
<div className="text-sm">
- {translate("crm.contacts.import.imported", { _: "Imported" })}{" "}
+ {translate("resources.contacts.import.imported", {
+ _: "Imported",
+ })}{" "}
<strong>
{importer.importCount} / {importer.rowCount}
</strong>{" "}
- {translate("crm.contacts.import.contacts_label", {
+ {translate("resources.contacts.import.contacts_label", {
smart_count: 2,
_: "contacts",
})}
@@ -132,7 +134,7 @@ export function ContactImportDialog({
{importer.remainingTime !== null && (
<>
{" "}
- {translate("crm.contacts.import.remaining_time", {
+ {translate("resources.contacts.import.remaining_time", {
_: "Estimated remaining time:",
})}{" "}
<strong>
@@ -143,7 +145,7 @@ export function ContactImportDialog({
onClick={handleReset}
className="text-red-600 underline hover:text-red-800"
>
- {translate("crm.contacts.import.stop", {
+ {translate("resources.contacts.import.stop", {
_: "Stop import",
})}
</button>
@@ -156,7 +158,7 @@ export function ContactImportDialog({
{importer.state === "error" && (
<Alert variant="destructive">
<AlertDescription>
- {translate("crm.contacts.import.error", {
+ {translate("resources.contacts.import.error", {
_: "Failed to import this file, please make sure your provided a valid CSV file.",
})}
</AlertDescription>
@@ -166,7 +168,7 @@ export function ContactImportDialog({
{importer.state === "complete" && (
<Alert>
<AlertDescription>
- {translate("crm.contacts.import.complete", {
+ {translate("resources.contacts.import.complete", {
importCount: importer.importCount,
errorCount: importer.errorCount,
_: `Contacts import complete. Imported ${importer.importCount} contacts, with ${importer.errorCount} errors`,
@@ -179,7 +181,7 @@ export function ContactImportDialog({
<>
<Alert>
<AlertDescription className="flex flex-col gap-4">
- {translate("crm.contacts.import.sample_hint", {
+ {translate("resources.contacts.import.sample_hint", {
_: "Here is a sample CSV file you can use as a template",
})}
<Button asChild variant="outline" size="sm">
@@ -187,9 +189,12 @@ export function ContactImportDialog({
to={SAMPLE_URL}
download={"crm_contacts_sample.csv"}
>
- {translate("crm.contacts.import.sample_download", {
- _: "Download CSV sample",
- })}
+ {translate(
+ "resources.contacts.import.sample_download",
+ {
+ _: "Download CSV sample",
+ },
+ )}
</Link>
</Button>{" "}
</AlertDescription>
@@ -197,7 +202,7 @@ export function ContactImportDialog({
<FileInput
source="csv"
- label="crm.contacts.import.csv_file"
+ label="resources.contacts.import.csv_file"
accept={{ "text/csv": [".csv"] }}
onChange={handleFileChange}
>
diff --git a/src/components/atomic-crm/contacts/ContactInputs.tsx b/src/components/atomic-crm/contacts/ContactInputs.tsx
index 9db40884..d40fd7de 100644
--- a/src/components/atomic-crm/contacts/ContactInputs.tsx
+++ b/src/components/atomic-crm/contacts/ContactInputs.tsx
@@ -49,7 +49,7 @@ const ContactIdentityInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.contacts.inputs.identity", { _: "Identity" })}
+ {translate("resources.contacts.inputs.identity", { _: "Identity" })}
</h6>
<RadioButtonGroupInput
label={false}
@@ -75,7 +75,7 @@ const ContactPositionInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.contacts.inputs.position", { _: "Position" })}
+ {translate("resources.contacts.inputs.position", { _: "Position" })}
</h6>
<TextInput source="title" helperText={false} />
<ReferenceInput source="company_id" reference="companies" perPage={10}>
@@ -132,7 +132,9 @@ const ContactPersonalInformationInputs = () => {
return (
<div className="flex flex-col gap-4">
<h6 className="text-lg font-semibold">
- {translate("crm.contacts.inputs.personal_info", { _: "Personal info" })}
+ {translate("resources.contacts.inputs.personal_info", {
+ _: "Personal info",
+ })}
</h6>
<ArrayInput source="email_jsonb" helperText={false}>
<SimpleFormIterator
diff --git a/src/components/atomic-crm/contacts/ContactListContent.tsx b/src/components/atomic-crm/contacts/ContactListContent.tsx
index 14ae3457..c58b4775 100644
--- a/src/components/atomic-crm/contacts/ContactListContent.tsx
+++ b/src/components/atomic-crm/contacts/ContactListContent.tsx
@@ -88,7 +88,9 @@ export const ContactListContent = () => {
{contacts.length === 0 && (
<div className="p-4">
<div className="text-muted-foreground">
- {translate("crm.contacts.empty.title", { _: "No contacts found" })}
+ {translate("resources.contacts.empty.title", {
+ _: "No contacts found",
+ })}
</div>
</div>
)}
@@ -207,7 +209,7 @@ export const ContactListContentMobile = () => {
return (
<div className="p-4">
<div className="text-center text-muted-foreground mb-4">
- {translate("crm.contacts.list.error_loading", {
+ {translate("resources.contacts.list.error_loading", {
_: "Error loading contacts",
})}
</div>
@@ -235,7 +237,9 @@ export const ContactListContentMobile = () => {
{contacts.length === 0 && (
<div className="p-4">
<div className="text-muted-foreground">
- {translate("crm.contacts.empty.title", { _: "No contacts found" })}
+ {translate("resources.contacts.empty.title", {
+ _: "No contacts found",
+ })}
</div>
</div>
)}
diff --git a/src/components/atomic-crm/contacts/ContactListFilter.tsx b/src/components/atomic-crm/contacts/ContactListFilter.tsx
index a954d3f4..f8418ab3 100644
--- a/src/components/atomic-crm/contacts/ContactListFilter.tsx
+++ b/src/components/atomic-crm/contacts/ContactListFilter.tsx
@@ -29,20 +29,20 @@ export const ContactListFilter = () => {
return (
<ResponsiveFilters
searchInput={{
- placeholder: translate("crm.contacts.filters.search", {
+ placeholder: translate("resources.contacts.filters.search", {
_: "Search name, company...",
}),
}}
>
<FilterCategory
- label={translate("crm.contacts.filters.last_activity", {
+ label={translate("resources.contacts.filters.last_activity", {
_: "Last activity",
})}
icon={<Clock />}
>
<ToggleFilterButton
className="w-auto md:w-full justify-between h-10 md:h-8"
- label={translate("crm.contacts.filters.today", { _: "Today" })}
+ label={translate("resources.contacts.filters.today", { _: "Today" })}
value={{
"last_seen@gte": endOfYesterday().toISOString(),
"last_seen@lte": undefined,
@@ -51,7 +51,7 @@ export const ContactListFilter = () => {
/>
<ToggleFilterButton
className="w-auto md:w-full justify-between h-10 md:h-8"
- label={translate("crm.contacts.filters.this_week", {
+ label={translate("resources.contacts.filters.this_week", {
_: "This week",
})}
value={{
@@ -62,7 +62,7 @@ export const ContactListFilter = () => {
/>
<ToggleFilterButton
className="w-auto md:w-full justify-between h-10 md:h-8"
- label={translate("crm.contacts.filters.before_this_week", {
+ label={translate("resources.contacts.filters.before_this_week", {
_: "Before this week",
})}
value={{
@@ -73,7 +73,7 @@ export const ContactListFilter = () => {
/>
<ToggleFilterButton
className="w-auto md:w-full justify-between h-10 md:h-8"
- label={translate("crm.contacts.filters.before_this_month", {
+ label={translate("resources.contacts.filters.before_this_month", {
_: "Before this month",
})}
value={{
@@ -84,7 +84,7 @@ export const ContactListFilter = () => {
/>
<ToggleFilterButton
className="w-auto md:w-full justify-between h-10 md:h-8"
- label={translate("crm.contacts.filters.before_last_month", {
+ label={translate("resources.contacts.filters.before_last_month", {
_: "Before last month",
})}
value={{
@@ -99,7 +99,7 @@ export const ContactListFilter = () => {
</FilterCategory>
<FilterCategory
- label={translate("crm.contacts.filters.status", { _: "Status" })}
+ label={translate("resources.contacts.filters.status", { _: "Status" })}
icon={<TrendingUp />}
>
{noteStatuses.map((status) => (
@@ -118,7 +118,7 @@ export const ContactListFilter = () => {
</FilterCategory>
<FilterCategory
- label={translate("crm.contacts.filters.tags", { _: "Tags" })}
+ label={translate("resources.contacts.filters.tags", { _: "Tags" })}
icon={<Tag />}
>
{data &&
@@ -145,11 +145,14 @@ export const ContactListFilter = () => {
<FilterCategory
icon={<CheckSquare />}
- label={translate("crm.tasks.name", { smart_count: 2, _: "Tasks" })}
+ label={translate("resources.tasks.name", {
+ smart_count: 2,
+ _: "Tasks",
+ })}
>
<ToggleFilterButton
className="w-full justify-between h-10 md:h-8"
- label={translate("crm.tasks.filters.with_pending", {
+ label={translate("resources.tasks.filters.with_pending", {
_: "With pending tasks",
})}
value={{ "nb_tasks@gt": 0 }}
@@ -195,7 +198,7 @@ export const ContactListFilterSummary = () => {
<div className="flex flex-wrap items-start mb-4 gap-1">
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.today", { _: "Today" })}
+ label={translate("resources.contacts.filters.today", { _: "Today" })}
value={{
"last_seen@gte": endOfYesterday().toISOString(),
"last_seen@lte": undefined,
@@ -203,7 +206,9 @@ export const ContactListFilterSummary = () => {
/>
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.this_week", { _: "This week" })}
+ label={translate("resources.contacts.filters.this_week", {
+ _: "This week",
+ })}
value={{
"last_seen@gte": startOfWeek(new Date()).toISOString(),
"last_seen@lte": undefined,
@@ -211,7 +216,7 @@ export const ContactListFilterSummary = () => {
/>
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.before_this_week", {
+ label={translate("resources.contacts.filters.before_this_week", {
_: "Before this week",
})}
value={{
@@ -221,7 +226,7 @@ export const ContactListFilterSummary = () => {
/>
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.before_this_month", {
+ label={translate("resources.contacts.filters.before_this_month", {
_: "Before this month",
})}
value={{
@@ -231,7 +236,7 @@ export const ContactListFilterSummary = () => {
/>
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.before_last_month", {
+ label={translate("resources.contacts.filters.before_last_month", {
_: "Before last month",
})}
value={{
@@ -275,7 +280,7 @@ export const ContactListFilterSummary = () => {
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.tasks.filters.with_pending", {
+ label={translate("resources.tasks.filters.with_pending", {
_: "With pending tasks",
})}
value={{ "nb_tasks@gt": 0 }}
@@ -283,7 +288,7 @@ export const ContactListFilterSummary = () => {
<ActiveFilterButton
className="w-auto justify-between h-8"
- label={translate("crm.contacts.filters.managed_by_me", {
+ label={translate("resources.contacts.filters.managed_by_me", {
_: "Managed by me",
})}
value={{ sales_id: identity?.id }}
diff --git a/src/components/atomic-crm/contacts/ContactMergeButton.tsx b/src/components/atomic-crm/contacts/ContactMergeButton.tsx
index fffe6803..235d6f3c 100644
--- a/src/components/atomic-crm/contacts/ContactMergeButton.tsx
+++ b/src/components/atomic-crm/contacts/ContactMergeButton.tsx
@@ -40,7 +40,7 @@ export const ContactMergeButton = () => {
onClick={() => setMergeDialogOpen(true)}
>
<Merge className="w-4 h-4" />
- {translate("crm.contacts.merge.action", {
+ {translate("resources.contacts.merge.action", {
_: "Merge with another contact",
})}
</Button>
@@ -130,7 +130,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
const handleMerge = async () => {
if (!winnerId || !loserContact) {
- notify("crm.contacts.merge.select_target", {
+ notify("resources.contacts.merge.select_target", {
type: "warning",
messageArgs: {
_: "Please select a contact to merge with",
@@ -143,7 +143,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
setIsMerging(true);
await mutateAsync();
setIsMerging(false);
- notify("crm.contacts.merge.success", {
+ notify("resources.contacts.merge.success", {
type: "success",
messageArgs: {
_: "Contacts merged successfully",
@@ -153,7 +153,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
onClose();
} catch (error) {
setIsMerging(false);
- notify("crm.contacts.merge.error", {
+ notify("resources.contacts.merge.error", {
type: "error",
messageArgs: {
_: "Failed to merge contacts",
@@ -170,10 +170,12 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
<DialogContent className="md:min-w-lg max-w-2xl">
<DialogHeader>
<DialogTitle>
- {translate("crm.contacts.merge.title", { _: "Merge Contact" })}
+ {translate("resources.contacts.merge.title", {
+ _: "Merge Contact",
+ })}
</DialogTitle>
<DialogDescription>
- {translate("crm.contacts.merge.description", {
+ {translate("resources.contacts.merge.description", {
_: "Merge this contact with another one.",
})}
</DialogDescription>
@@ -182,7 +184,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
<div className="space-y-4">
<div className="p-4 bg-primary/5 rounded-lg border border-primary/20">
<p className="font-medium text-sm">
- {translate("crm.contacts.merge.current_contact", {
+ {translate("resources.contacts.merge.current_contact", {
_: "Current Contact (will be deleted)",
})}
</p>
@@ -193,7 +195,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
</div>
<p className="font-medium text-sm mb-2">
- {translate("crm.contacts.merge.target_contact", {
+ {translate("resources.contacts.merge.target_contact", {
_: "Target Contact (will be kept)",
})}
</p>
@@ -219,7 +221,7 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
<>
<div className="space-y-2">
<p className="font-medium text-sm">
- {translate("crm.contacts.merge.what_will_be_merged", {
+ {translate("resources.contacts.merge.what_will_be_merged", {
_: "What will be merged:",
})}
</p>
@@ -262,9 +264,12 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
!loserContact.email_jsonb?.length &&
!loserContact.phone_jsonb?.length && (
<li className="text-muted-foreground/60">
- {translate("crm.contacts.merge.no_additional_data", {
- _: "No additional data to merge",
- })}
+ {translate(
+ "resources.contacts.merge.no_additional_data",
+ {
+ _: "No additional data to merge",
+ },
+ )}
</li>
)}
</ul>
@@ -272,12 +277,12 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
<Alert variant="destructive">
<AlertTriangle className="h-4 w-4" />
<AlertTitle>
- {translate("crm.contacts.merge.warning_title", {
+ {translate("resources.contacts.merge.warning_title", {
_: "Warning: Destructive Operation",
})}
</AlertTitle>
<AlertDescription>
- {translate("crm.contacts.merge.warning_description", {
+ {translate("resources.contacts.merge.warning_description", {
_: "All data will be transferred to the second contact. This action cannot be undone.",
})}
</AlertDescription>
@@ -294,8 +299,10 @@ const ContactMergeDialog = ({ open, onClose }: ContactMergeDialogProps) => {
<Button onClick={handleMerge} disabled={!winnerId || isMerging}>
<Merge />
{isMerging
- ? translate("crm.contacts.merge.merging", { _: "Merging..." })
- : translate("crm.contacts.merge.confirm", {
+ ? translate("resources.contacts.merge.merging", {
+ _: "Merging...",
+ })
+ : translate("resources.contacts.merge.confirm", {
_: "Merge Contacts",
})}
</Button>
diff --git a/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx b/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx
index 32f05c17..9fddf1f1 100644
--- a/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx
+++ b/src/components/atomic-crm/contacts/ContactPersonalInfo.tsx
@@ -29,7 +29,7 @@ export const ContactPersonalInfo = () => {
{record.has_newsletter && (
<p className="pl-6 py-1 text-sm text-muted-foreground">
- {translate("crm.contacts.inputs.subscribed_newsletter", {
+ {translate("resources.contacts.inputs.subscribed_newsletter", {
_: "Subscribed to newsletter",
})}
</p>
diff --git a/src/components/atomic-crm/contacts/ContactShow.tsx b/src/components/atomic-crm/contacts/ContactShow.tsx
index 94359db3..d31df592 100644
--- a/src/components/atomic-crm/contacts/ContactShow.tsx
+++ b/src/components/atomic-crm/contacts/ContactShow.tsx
@@ -135,7 +135,7 @@ const ContactShowContentMobile = () => {
<Tabs defaultValue="notes" className="w-full">
<TabsList className="grid w-full grid-cols-3 h-10">
<TabsTrigger value="notes">
- {translate("crm.notes.name", {
+ {translate("resources.notes.name", {
smart_count: 2,
_: "Notes",
})}
@@ -146,7 +146,7 @@ const ContactShowContentMobile = () => {
reference="tasks"
filter={{ "done_date@is": null }}
/>{" "}
- {translate("crm.tasks.name", {
+ {translate("resources.tasks.name", {
smart_count: 2,
_: "Tasks",
})}
@@ -164,13 +164,13 @@ const ContactShowContentMobile = () => {
empty={
<div className="flex flex-col items-center justify-center py-8 text-center">
<p className="text-muted-foreground mb-4">
- {translate("crm.notes.empty", { _: "No notes yet" })}
+ {translate("resources.notes.empty", { _: "No notes yet" })}
</p>
<Button
variant="outline"
onClick={() => setNoteCreateOpen(true)}
>
- {translate("crm.notes.action.add", { _: "Add note" })}
+ {translate("resources.notes.action.add", { _: "Add note" })}
</Button>
</div>
}
@@ -198,7 +198,7 @@ const ContactShowContentMobile = () => {
<div className="space-y-6">
<div>
<h3 className="text-lg font-semibold">
- {translate("crm.contacts.inputs.personal_info", {
+ {translate("resources.contacts.inputs.personal_info", {
_: "Personal info",
})}
</h3>
@@ -209,9 +209,12 @@ const ContactShowContentMobile = () => {
</div>
<div>
<h3 className="text-lg font-semibold">
- {translate("crm.contacts.inputs.background_info_short", {
- _: "Background info",
- })}
+ {translate(
+ "resources.contacts.inputs.background_info_short",
+ {
+ _: "Background info",
+ },
+ )}
</h3>
<Separator />
<div className="mt-3">
@@ -220,7 +223,7 @@ const ContactShowContentMobile = () => {
</div>
<div>
<h3 className="text-lg font-semibold">
- {translate("crm.tags.name", {
+ {translate("resources.tags.name", {
smart_count: 2,
_: "Tags",
})}
diff --git a/src/components/atomic-crm/contacts/ContactTasksList.tsx b/src/components/atomic-crm/contacts/ContactTasksList.tsx
index d852afb3..09387a19 100644
--- a/src/components/atomic-crm/contacts/ContactTasksList.tsx
+++ b/src/components/atomic-crm/contacts/ContactTasksList.tsx
@@ -26,10 +26,10 @@ export const ContactTasksList = () => {
/>
<div className="flex flex-col items-center justify-center py-8 text-center">
<p className="text-muted-foreground mb-4">
- {translate("crm.tasks.empty", { _: "No tasks yet" })}
+ {translate("resources.tasks.empty", { _: "No tasks yet" })}
</p>
<Button variant="outline" onClick={() => setTaskCreateOpen(true)}>
- {translate("crm.tasks.action.add", { _: "Add task" })}
+ {translate("resources.tasks.action.add", { _: "Add task" })}
</Button>
</div>
</>
diff --git a/src/components/atomic-crm/contacts/ExportVCardButton.tsx b/src/components/atomic-crm/contacts/ExportVCardButton.tsx
index 6bd33429..78389d0d 100644
--- a/src/components/atomic-crm/contacts/ExportVCardButton.tsx
+++ b/src/components/atomic-crm/contacts/ExportVCardButton.tsx
@@ -74,7 +74,7 @@ export const ExportVCardButton = () => {
className="h-6 cursor-pointer"
>
<Download className="w-4 h-4" />
- {translate("crm.contacts.action.export_vcard", {
+ {translate("resources.contacts.action.export_vcard", {
_: "Export to vCard",
})}
</Button>
diff --git a/src/components/atomic-crm/contacts/TagsListEdit.tsx b/src/components/atomic-crm/contacts/TagsListEdit.tsx
index 1d9ac627..6c8833c8 100644
--- a/src/components/atomic-crm/contacts/TagsListEdit.tsx
+++ b/src/components/atomic-crm/contacts/TagsListEdit.tsx
@@ -119,7 +119,7 @@ export const TagsListEdit = () => {
className="h-9 md:h-6 cursor-pointer"
>
<Plus className="w-4 h-4 md:w-3 md:h-3 mr-1" />
- {translate("crm.tags.action.add", { _: "Add tag" })}
+ {translate("resources.tags.action.add", { _: "Add tag" })}
</Button>
</DropdownMenuTrigger>
<DropdownMenuContent>
@@ -146,7 +146,7 @@ export const TagsListEdit = () => {
className="w-full justify-start p-0 cursor-pointer text-base md:text-sm"
>
<Edit className="w-4 h-4 md:w-3 md:h-3 mr-2" />
- {translate("crm.tags.action.create_new", {
+ {translate("resources.tags.action.create_new", {
_: "Create new tag",
})}
</Button>
diff --git a/src/components/atomic-crm/contacts/contactGender.ts b/src/components/atomic-crm/contacts/contactGender.ts
index 3998a797..9320bda8 100644
--- a/src/components/atomic-crm/contacts/contactGender.ts
+++ b/src/components/atomic-crm/contacts/contactGender.ts
@@ -9,11 +9,19 @@ export const contactGenderDefaultLabels: Record<string, string> = {
};
export const contactGender: ContactGender[] = [
- { value: "male", label: "crm.contacts.inputs.genders.male", icon: Mars },
- { value: "female", label: "crm.contacts.inputs.genders.female", icon: Venus },
+ {
+ value: "male",
+ label: "resources.contacts.inputs.genders.male",
+ icon: Mars,
+ },
+ {
+ value: "female",
+ label: "resources.contacts.inputs.genders.female",
+ icon: Venus,
+ },
{
value: "nonbinary",
- label: "crm.contacts.inputs.genders.nonbinary",
+ label: "resources.contacts.inputs.genders.nonbinary",
icon: NonBinary,
},
];
diff --git a/src/components/atomic-crm/contacts/getTranslatedPersonalInfoTypeLabel.ts b/src/components/atomic-crm/contacts/getTranslatedPersonalInfoTypeLabel.ts
index c159c09f..8e05b8c7 100644
--- a/src/components/atomic-crm/contacts/getTranslatedPersonalInfoTypeLabel.ts
+++ b/src/components/atomic-crm/contacts/getTranslatedPersonalInfoTypeLabel.ts
@@ -11,7 +11,7 @@ export const getTranslatedPersonalInfoTypeLabel = (
translate: TranslateFn,
) =>
translate(
- `crm.contacts.inputs.personal_info_types.${personalInfoTypeMap[type] ?? type.toLowerCase()}`,
+ `resources.contacts.inputs.personal_info_types.${personalInfoTypeMap[type] ?? type.toLowerCase()}`,
{
_: type,
},
diff --git a/src/components/atomic-crm/dashboard/DashboardStepper.tsx b/src/components/atomic-crm/dashboard/DashboardStepper.tsx
index 0ed74097..711202d5 100644
--- a/src/components/atomic-crm/dashboard/DashboardStepper.tsx
+++ b/src/components/atomic-crm/dashboard/DashboardStepper.tsx
@@ -79,7 +79,7 @@ export const DashboardStepper = ({
<div className="flex flex-col gap-4">
<h4 className="font-bold">
- {translate("crm.contacts.action.add_first", {
+ {translate("resources.contacts.action.add_first", {
_: "Add your first contact",
})}
</h4>
@@ -92,14 +92,14 @@ export const DashboardStepper = ({
variant="outline"
>
<Plus className="h-4 w-4" />
- {translate("crm.contacts.action.new", {
+ {translate("resources.contacts.action.new", {
_: "New Contact",
})}
</Button>
) : (
<>
<CreateButton
- label="crm.contacts.action.new"
+ label="resources.contacts.action.new"
resource="contacts"
/>
<ContactImportButton />
@@ -112,12 +112,12 @@ export const DashboardStepper = ({
<Circle className="text-muted-foreground w-5 h-5 mt-1 shrink-0" />
<div className="flex flex-col gap-4">
<h4 className="font-bold">
- {translate("crm.notes.action.add_first", {
+ {translate("resources.notes.action.add_first", {
_: "Add your first note",
})}
</h4>
<p>
- {translate("crm.notes.stepper.hint", {
+ {translate("resources.notes.stepper.hint", {
_: "Go to a contact page and add a note",
})}
</p>
@@ -128,12 +128,16 @@ export const DashboardStepper = ({
className="w-[100px] gap-2"
>
<Plus className="h-4 w-4" />
- {translate("crm.notes.action.add", { _: "Add note" })}
+ {translate("resources.notes.action.add", {
+ _: "Add note",
+ })}
</Button>
) : (
<Button asChild disabled={step < 2} className="w-[100px]">
<Link to={`/contacts/${contactId}/show`}>
- {translate("crm.notes.action.add", { _: "Add note" })}
+ {translate("resources.notes.action.add", {
+ _: "Add note",
+ })}
</Link>
</Button>
)}
diff --git a/src/components/atomic-crm/dashboard/DealsChart.tsx b/src/components/atomic-crm/dashboard/DealsChart.tsx
index 30335cef..b03355b5 100644
--- a/src/components/atomic-crm/dashboard/DealsChart.tsx
+++ b/src/components/atomic-crm/dashboard/DealsChart.tsx
@@ -180,7 +180,7 @@ export const DealsChart = memo(() => {
value: 0,
lineStyle: { strokeOpacity: 0 },
textStyle: { fill: "#2ebca6" },
- legend: translate("crm.deals.stage.won", { _: "Won" }),
+ legend: translate("resources.deals.stage.won", { _: "Won" }),
legendPosition: "top-left",
legendOrientation: "vertical",
},
@@ -192,7 +192,7 @@ export const DealsChart = memo(() => {
strokeWidth: 1,
},
textStyle: { fill: "#e25c3b" },
- legend: translate("crm.deals.stage.lost", { _: "Lost" }),
+ legend: translate("resources.deals.stage.lost", { _: "Lost" }),
legendPosition: "bottom-left",
legendOrientation: "vertical",
},
diff --git a/src/components/atomic-crm/dashboard/HotContacts.tsx b/src/components/atomic-crm/dashboard/HotContacts.tsx
index 6f4164a5..61dc7b01 100644
--- a/src/components/atomic-crm/dashboard/HotContacts.tsx
+++ b/src/components/atomic-crm/dashboard/HotContacts.tsx
@@ -38,7 +38,7 @@ export const HotContacts = () => {
<Users className="text-muted-foreground w-6 h-6" />
</div>
<h2 className="text-xl font-semibold text-muted-foreground">
- {translate("crm.contacts.hot.title", { _: "Hot Contacts" })}
+ {translate("resources.contacts.hot.title", { _: "Hot Contacts" })}
</h2>
<TooltipProvider>
<Tooltip>
@@ -55,7 +55,9 @@ export const HotContacts = () => {
</Button>
</TooltipTrigger>
<TooltipContent>
- {translate("crm.contacts.hot.create", { _: "Create contact" })}
+ {translate("resources.contacts.hot.create", {
+ _: "Create contact",
+ })}
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -81,12 +83,12 @@ export const HotContacts = () => {
empty={
<div className="p-4">
<p className="text-sm mb-4">
- {translate("crm.contacts.hot.empty_hint", {
+ {translate("resources.contacts.hot.empty_hint", {
_: 'Contacts with a "hot" status will appear here.',
})}
</p>
<p className="text-sm">
- {translate("crm.contacts.hot.empty_change_status", {
+ {translate("resources.contacts.hot.empty_change_status", {
_: 'Change the status of a contact by adding a note to that contact and clicking on "show options".',
})}
</p>
diff --git a/src/components/atomic-crm/dashboard/LatestNotes.tsx b/src/components/atomic-crm/dashboard/LatestNotes.tsx
index 62c1e9f7..4ec66412 100644
--- a/src/components/atomic-crm/dashboard/LatestNotes.tsx
+++ b/src/components/atomic-crm/dashboard/LatestNotes.tsx
@@ -95,7 +95,7 @@ const Deal = ({ note }: any) => {
const translate = useTranslate();
return (
<>
- {translate("crm.deals.forcedCaseName", { _: "Deal" })}{" "}
+ {translate("resources.deals.forcedCaseName", { _: "Deal" })}{" "}
<ReferenceField
record={note}
source="deal_id"
@@ -112,7 +112,7 @@ const Contact = ({ note }: any) => {
const translate = useTranslate();
return (
<>
- {translate("crm.contacts.forcedCaseName", { _: "Contact" })}{" "}
+ {translate("resources.contacts.forcedCaseName", { _: "Contact" })}{" "}
<ReferenceField<ContactNote, Contact>
record={note}
source="contact_id"
diff --git a/src/components/atomic-crm/deals/DealArchivedList.tsx b/src/components/atomic-crm/deals/DealArchivedList.tsx
index 26afa49b..4950dae5 100644
--- a/src/components/atomic-crm/deals/DealArchivedList.tsx
+++ b/src/components/atomic-crm/deals/DealArchivedList.tsx
@@ -53,12 +53,14 @@ export const DealArchivedList = () => {
onClick={() => setOpenDialog(true)}
className="my-4"
>
- {translate("crm.deals.archived.view", { _: "View archived deals" })}
+ {translate("resources.deals.archived.view", {
+ _: "View archived deals",
+ })}
</Button>
<Dialog open={openDialog} onOpenChange={() => setOpenDialog(false)}>
<DialogContent className="lg:max-w-4xl overflow-y-auto max-h-9/10 top-1/20 translate-y-0">
<DialogTitle>
- {translate("crm.deals.archived.list_title", {
+ {translate("resources.deals.archived.list_title", {
_: "Archived Deals",
})}
</DialogTitle>
diff --git a/src/components/atomic-crm/deals/DealEdit.tsx b/src/components/atomic-crm/deals/DealEdit.tsx
index bc966e93..c7bca0d8 100644
--- a/src/components/atomic-crm/deals/DealEdit.tsx
+++ b/src/components/atomic-crm/deals/DealEdit.tsx
@@ -36,7 +36,7 @@ export const DealEdit = ({ open, id }: { open: boolean; id?: string }) => {
mutationMode="pessimistic"
mutationOptions={{
onSuccess: () => {
- notify("crm.deals.updated", {
+ notify("resources.deals.updated", {
messageArgs: { _: "Deal updated" },
});
redirect(`/deals/${id}/show`, undefined, undefined, undefined, {
@@ -72,7 +72,7 @@ function EditHeader() {
<CompanyAvatar />
</ReferenceField>
<h2 className="text-2xl font-semibold">
- {translate("crm.deals.edit.title", {
+ {translate("resources.deals.edit.title", {
_: `Edit ${deal.name} deal`,
name: deal.name,
})}
@@ -82,7 +82,7 @@ function EditHeader() {
<DeleteButton />
<Button asChild variant="outline" className="h-9">
<Link to={`/deals/${deal.id}/show`}>
- {translate("crm.deals.action.back_to_deal", {
+ {translate("resources.deals.action.back_to_deal", {
_: "Back to deal",
})}
</Link>
diff --git a/src/components/atomic-crm/deals/DealEmpty.tsx b/src/components/atomic-crm/deals/DealEmpty.tsx
index eca98828..4b357809 100644
--- a/src/components/atomic-crm/deals/DealEmpty.tsx
+++ b/src/components/atomic-crm/deals/DealEmpty.tsx
@@ -33,22 +33,24 @@ export const DealEmpty = ({ children }: { children?: ReactNode }) => {
>
<img
src="./img/empty.svg"
- alt={translate("crm.deals.empty.title", { _: "No deals found" })}
+ alt={translate("resources.deals.empty.title", { _: "No deals found" })}
/>
{contacts && contacts.length > 0 ? (
<>
<div className="flex flex-col items-center gap-0">
<h3 className="text-lg font-bold">
- {translate("crm.deals.empty.title", { _: "No deals found" })}
+ {translate("resources.deals.empty.title", {
+ _: "No deals found",
+ })}
</h3>
<p className="text-sm text-center text-muted-foreground mb-4">
- {translate("crm.deals.empty.description", {
+ {translate("resources.deals.empty.description", {
_: "It seems your deal list is empty.",
})}
</p>
</div>
<div className="flex space-x-8">
- <CreateButton label="crm.deals.action.create" />
+ <CreateButton label="resources.deals.action.create" />
</div>
<DealCreate open={!!matchCreate} />
{children}
@@ -56,19 +58,19 @@ export const DealEmpty = ({ children }: { children?: ReactNode }) => {
) : (
<div className="flex flex-col items-center gap-0">
<h3 className="text-lg font-bold">
- {translate("crm.deals.empty.title", { _: "No deals found" })}
+ {translate("resources.deals.empty.title", { _: "No deals found" })}
</h3>
<p className="text-sm text-center text-muted-foreground mb-4">
- {translate("crm.contacts.empty.description", {
+ {translate("resources.contacts.empty.description", {
_: "It seems your contact list is empty.",
})}
<br />
<Link to="/contacts/create" className="hover:underline">
- {translate("crm.contacts.action.add_first", {
+ {translate("resources.contacts.action.add_first", {
_: "Add your first contact",
})}
</Link>{" "}
- {translate("crm.deals.empty.before_create", {
+ {translate("resources.deals.empty.before_create", {
_: "before creating a deal.",
})}
</p>
diff --git a/src/components/atomic-crm/deals/DealInputs.tsx b/src/components/atomic-crm/deals/DealInputs.tsx
index b01e9b4b..0c25ee71 100644
--- a/src/components/atomic-crm/deals/DealInputs.tsx
+++ b/src/components/atomic-crm/deals/DealInputs.tsx
@@ -42,7 +42,7 @@ const DealLinkedToInputs = () => {
return (
<div className="flex flex-col gap-4 flex-1">
<h3 className="text-base font-medium">
- {translate("crm.deals.inputs.linked_to", { _: "Linked to" })}
+ {translate("resources.deals.inputs.linked_to", { _: "Linked to" })}
</h3>
<ReferenceInput source="company_id" reference="companies">
<AutocompleteCompanyInput
diff --git a/src/components/atomic-crm/deals/DealList.tsx b/src/components/atomic-crm/deals/DealList.tsx
index 9a6e64a2..b74c0823 100644
--- a/src/components/atomic-crm/deals/DealList.tsx
+++ b/src/components/atomic-crm/deals/DealList.tsx
@@ -32,7 +32,9 @@ const DealList = () => {
<ReferenceInput source="company_id" reference="companies">
<AutocompleteInput
label={false}
- placeholder={translate("crm.deals.filters.company", { _: "Company" })}
+ placeholder={translate("resources.deals.filters.company", {
+ _: "Company",
+ })}
/>
</ReferenceInput>,
<WrapperField
@@ -105,7 +107,7 @@ const DealActions = () => (
<TopToolbar>
<FilterButton />
<ExportButton />
- <CreateButton label="crm.deals.action.new" />
+ <CreateButton label="resources.deals.action.new" />
</TopToolbar>
);
diff --git a/src/components/atomic-crm/deals/DealShow.tsx b/src/components/atomic-crm/deals/DealShow.tsx
index 457c4425..13ea5c3a 100644
--- a/src/components/atomic-crm/deals/DealShow.tsx
+++ b/src/components/atomic-crm/deals/DealShow.tsx
@@ -200,7 +200,7 @@ const ArchivedTitle = () => {
return (
<div className="bg-orange-500 px-6 py-4">
<h3 className="text-lg font-bold text-white">
- {translate("crm.deals.archived.title", { _: "Archived Deal" })}
+ {translate("resources.deals.archived.title", { _: "Archived Deal" })}
</h3>
</div>
);
@@ -223,7 +223,7 @@ const ArchiveButton = ({ record }: { record: Deal }) => {
{
onSuccess: () => {
redirect("list", "deals");
- notify("crm.deals.archived.success", {
+ notify("resources.deals.archived.success", {
type: "info",
undoable: false,
messageArgs: { _: "Deal archived" },
@@ -231,7 +231,7 @@ const ArchiveButton = ({ record }: { record: Deal }) => {
refresh();
},
onError: () => {
- notify("crm.deals.archived.error", {
+ notify("resources.deals.archived.error", {
type: "error",
messageArgs: { _: "Error: deal not archived" },
});
@@ -248,7 +248,7 @@ const ArchiveButton = ({ record }: { record: Deal }) => {
className="flex items-center gap-2 h-9"
>
<Archive className="w-4 h-4" />
- {translate("crm.deals.archived.action", { _: "Archive" })}
+ {translate("resources.deals.archived.action", { _: "Archive" })}
</Button>
);
};
@@ -264,7 +264,7 @@ const UnarchiveButton = ({ record }: { record: Deal }) => {
mutationFn: () => dataProvider.unarchiveDeal(record),
onSuccess: () => {
redirect("list", "deals");
- notify("crm.deals.unarchived.success", {
+ notify("resources.deals.unarchived.success", {
type: "info",
undoable: false,
messageArgs: { _: "Deal unarchived" },
@@ -272,7 +272,7 @@ const UnarchiveButton = ({ record }: { record: Deal }) => {
refresh();
},
onError: () => {
- notify("crm.deals.unarchived.error", {
+ notify("resources.deals.unarchived.error", {
type: "error",
messageArgs: { _: "Error: deal not unarchived" },
});
@@ -291,7 +291,7 @@ const UnarchiveButton = ({ record }: { record: Deal }) => {
className="flex items-center gap-2 h-9"
>
<ArchiveRestore className="w-4 h-4" />
- {translate("crm.deals.unarchived.action", {
+ {translate("resources.deals.unarchived.action", {
_: "Send back to the board",
})}
</Button>
diff --git a/src/components/atomic-crm/deals/OnlyMineInput.tsx b/src/components/atomic-crm/deals/OnlyMineInput.tsx
index c6db0d24..e3f1dc7d 100644
--- a/src/components/atomic-crm/deals/OnlyMineInput.tsx
+++ b/src/components/atomic-crm/deals/OnlyMineInput.tsx
@@ -25,7 +25,7 @@ export const OnlyMineInput = (_: { alwaysOn: boolean; source: string }) => {
onCheckedChange={handleChange}
/>
<Label htmlFor="only-mine">
- {translate("crm.companies.filters.only_mine", {
+ {translate("resources.companies.filters.only_mine", {
_: "Only companies I manage",
})}
</Label>
diff --git a/src/components/atomic-crm/layout/Header.tsx b/src/components/atomic-crm/layout/Header.tsx
index 3b4a792f..d551cc6d 100644
--- a/src/components/atomic-crm/layout/Header.tsx
+++ b/src/components/atomic-crm/layout/Header.tsx
@@ -57,7 +57,7 @@ const Header = () => {
isActive={currentPath === "/"}
/>
<NavigationTab
- label={translate("crm.contacts.name", {
+ label={translate("resources.contacts.name", {
smart_count: 2,
_: "Contacts",
})}
@@ -65,7 +65,7 @@ const Header = () => {
isActive={currentPath === "/contacts"}
/>
<NavigationTab
- label={translate("crm.companies.name", {
+ label={translate("resources.companies.name", {
smart_count: 2,
_: "Companies",
})}
@@ -73,7 +73,7 @@ const Header = () => {
isActive={currentPath === "/companies"}
/>
<NavigationTab
- label={translate("crm.deals.name", {
+ label={translate("resources.deals.name", {
smart_count: 2,
_: "Deals",
})}
@@ -135,7 +135,7 @@ const UsersMenu = () => {
<DropdownMenuItem asChild onClick={userMenuContext.onClose}>
<Link to="/sales" className="flex items-center gap-2">
<Users />
- {translate("crm.sales.name", { smart_count: 2, _: "Users" })}
+ {translate("resources.sales.name", { smart_count: 2, _: "Users" })}
</Link>
</DropdownMenuItem>
);
diff --git a/src/components/atomic-crm/layout/MobileNavigation.tsx b/src/components/atomic-crm/layout/MobileNavigation.tsx
index 4eade5df..5b1a6ecd 100644
--- a/src/components/atomic-crm/layout/MobileNavigation.tsx
+++ b/src/components/atomic-crm/layout/MobileNavigation.tsx
@@ -84,7 +84,7 @@ export const MobileNavigation = () => {
<NavigationButton
href="/contacts"
Icon={Users}
- label={translate("crm.contacts.name", {
+ label={translate("resources.contacts.name", {
smart_count: 2,
_: "Contacts",
})}
@@ -94,7 +94,7 @@ export const MobileNavigation = () => {
<NavigationButton
href="/tasks"
Icon={ListTodo}
- label={translate("crm.tasks.name", {
+ label={translate("resources.tasks.name", {
smart_count: 2,
_: "Tasks",
})}
@@ -174,7 +174,7 @@ const CreateButton = () => {
setContactCreateOpen(true);
}}
>
- {translate("crm.contacts.forcedCaseName", { _: "Contact" })}
+ {translate("resources.contacts.forcedCaseName", { _: "Contact" })}
</DropdownMenuItem>
<DropdownMenuItem
className="h-12 px-4 text-base"
@@ -182,7 +182,7 @@ const CreateButton = () => {
setNoteCreateOpen(true);
}}
>
- {translate("crm.notes.forcedCaseName", { _: "Note" })}
+ {translate("resources.notes.forcedCaseName", { _: "Note" })}
</DropdownMenuItem>
<DropdownMenuItem
className="h-12 px-4 text-base"
@@ -190,7 +190,7 @@ const CreateButton = () => {
setTaskCreateOpen(true);
}}
>
- {translate("crm.tasks.forcedCaseName", { _: "Task" })}
+ {translate("resources.tasks.forcedCaseName", { _: "Task" })}
</DropdownMenuItem>
</DropdownMenuContent>
</DropdownMenu>
diff --git a/src/components/atomic-crm/notes/Note.tsx b/src/components/atomic-crm/notes/Note.tsx
index 08fe2c84..3bde40d8 100644
--- a/src/components/atomic-crm/notes/Note.tsx
+++ b/src/components/atomic-crm/notes/Note.tsx
@@ -59,7 +59,7 @@ export const Note = ({
const [deleteNote] = useDelete(resource, undefined, {
mutationMode: "undoable",
onSuccess: () => {
- notify("crm.notes.deleted", {
+ notify("resources.notes.deleted", {
type: "info",
undoable: true,
messageArgs: {
@@ -115,7 +115,7 @@ export const Note = ({
>
<WithRecord render={(record) => <SaleName sale={record} />} />
</ReferenceField>{" "}
- {translate("crm.notes.feed.added", { _: "added a note" })}{" "}
+ {translate("resources.notes.feed.added", { _: "added a note" })}{" "}
{showStatus && note.status && (
<Status className="ml-2" status={note.status} />
)}
@@ -134,7 +134,9 @@ export const Note = ({
</Button>
</TooltipTrigger>
<TooltipContent>
- <p>{translate("crm.notes.action.edit", { _: "Edit note" })}</p>
+ <p>
+ {translate("resources.notes.action.edit", { _: "Edit note" })}
+ </p>
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -152,7 +154,9 @@ export const Note = ({
</TooltipTrigger>
<TooltipContent>
<p>
- {translate("crm.notes.action.delete", { _: "Delete note" })}
+ {translate("resources.notes.action.delete", {
+ _: "Delete note",
+ })}
</p>
</TooltipContent>
</Tooltip>
@@ -182,7 +186,7 @@ export const Note = ({
className="flex items-center gap-2 cursor-pointer"
>
<Save className="w-4 h-4" />
- {translate("crm.notes.action.update", { _: "Update note" })}
+ {translate("resources.notes.action.update", { _: "Update note" })}
</Button>
</div>
</Form>
diff --git a/src/components/atomic-crm/notes/NoteCreate.tsx b/src/components/atomic-crm/notes/NoteCreate.tsx
index c7686638..f1b79cfd 100644
--- a/src/components/atomic-crm/notes/NoteCreate.tsx
+++ b/src/components/atomic-crm/notes/NoteCreate.tsx
@@ -89,7 +89,7 @@ const NoteCreateButton = ({
},
previousData: record,
});
- notify("crm.notes.added", {
+ notify("resources.notes.added", {
messageArgs: {
_: "Note added",
},
@@ -100,7 +100,9 @@ const NoteCreateButton = ({
<div className="flex justify-end">
<SaveButton
type="button"
- label={translate("crm.notes.action.add_this", { _: "Add this note" })}
+ label={translate("resources.notes.action.add_this", {
+ _: "Add this note",
+ })}
transform={(data) => ({
...data,
[foreignKeyMapping[reference]]: record.id,
@@ -111,7 +113,7 @@ const NoteCreateButton = ({
onSuccess: handleSuccess,
}}
>
- {translate("crm.notes.action.add_this", { _: "Add this note" })}
+ {translate("resources.notes.action.add_this", { _: "Add this note" })}
</SaveButton>
</div>
);
diff --git a/src/components/atomic-crm/notes/NoteCreateSheet.tsx b/src/components/atomic-crm/notes/NoteCreateSheet.tsx
index a8efa64e..78b90a9a 100644
--- a/src/components/atomic-crm/notes/NoteCreateSheet.tsx
+++ b/src/components/atomic-crm/notes/NoteCreateSheet.tsx
@@ -53,7 +53,7 @@ export const NoteCreateSheet = ({
data: { last_seen: new Date().toISOString(), status: data.status },
previousData: contact,
});
- notify("crm.notes.added", {
+ notify("resources.notes.added", {
messageArgs: {
_: "Note added",
},
@@ -68,10 +68,10 @@ export const NoteCreateSheet = ({
title={
<h1 className="text-xl font-semibold truncate pr-10">
{!selectContact
- ? translate("crm.notes.sheet.create_for", {
+ ? translate("resources.notes.sheet.create_for", {
_: "Create note for",
})
- : translate("crm.notes.sheet.create", { _: "Create note" })}
+ : translate("resources.notes.sheet.create", { _: "Create note" })}
{!selectContact && (
<>
{" "}
diff --git a/src/components/atomic-crm/notes/NoteEditSheet.tsx b/src/components/atomic-crm/notes/NoteEditSheet.tsx
index 05938004..203f2049 100644
--- a/src/components/atomic-crm/notes/NoteEditSheet.tsx
+++ b/src/components/atomic-crm/notes/NoteEditSheet.tsx
@@ -43,7 +43,7 @@ export const NoteEditSheet = ({
<h1 className="text-xl font-semibold truncate pr-10">
{referenceRecord ? (
<>
- {translate("crm.notes.sheet.edit_for", {
+ {translate("resources.notes.sheet.edit_for", {
_: "Edit note for",
})}{" "}
<RecordRepresentation
@@ -52,7 +52,7 @@ export const NoteEditSheet = ({
/>
</>
) : (
- translate("crm.notes.sheet.edit", { _: "Edit note" })
+ translate("resources.notes.sheet.edit", { _: "Edit note" })
)}
</h1>
)}
diff --git a/src/components/atomic-crm/notes/NoteInputs.tsx b/src/components/atomic-crm/notes/NoteInputs.tsx
index b61bd105..b3093614 100644
--- a/src/components/atomic-crm/notes/NoteInputs.tsx
+++ b/src/components/atomic-crm/notes/NoteInputs.tsx
@@ -42,7 +42,7 @@ export const NoteInputs = ({
label={false}
multiline
helperText={false}
- placeholder={translate("crm.notes.inputs.add_note", {
+ placeholder={translate("resources.notes.inputs.add_note", {
_: "Add a note",
})}
rows={6}
@@ -80,12 +80,12 @@ export const NoteInputs = ({
}}
className="text-sm text-muted-foreground underline hover:no-underline p-0 h-auto cursor-pointer"
>
- {translate("crm.notes.inputs.show_options", {
+ {translate("resources.notes.inputs.show_options", {
_: "Show options",
})}
</Button>
<span className="text-sm text-muted-foreground">
- {translate("crm.notes.inputs.options_hint", {
+ {translate("resources.notes.inputs.options_hint", {
_: "(attach files, or change details)",
})}
</span>
diff --git a/src/components/atomic-crm/notes/NoteShowPage.tsx b/src/components/atomic-crm/notes/NoteShowPage.tsx
index ad5a66b5..3155a9c0 100644
--- a/src/components/atomic-crm/notes/NoteShowPage.tsx
+++ b/src/components/atomic-crm/notes/NoteShowPage.tsx
@@ -47,7 +47,7 @@ export const NoteShowPage = () => {
<div className="flex flex-1 min-w-0">
<Link to={`/contacts/${contactId}/show`} className="flex-1 min-w-0">
<h1 className="truncate text-xl font-semibold">
- {translate("crm.notes.note_for", { _: "Note for" })}{" "}
+ {translate("resources.notes.note_for", { _: "Note for" })}{" "}
<ReferenceField
record={note}
resource="contact_notes"
@@ -69,7 +69,7 @@ export const NoteShowPage = () => {
>
<Pencil className="size-5" />
<span className="sr-only">
- {translate("crm.notes.action.edit", { _: "Edit note" })}
+ {translate("resources.notes.action.edit", { _: "Edit note" })}
</span>
</Button>
</MobileHeader>
diff --git a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
index 8357007d..4b80a81b 100644
--- a/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
+++ b/src/components/atomic-crm/notes/NotesIteratorMobile.tsx
@@ -52,7 +52,7 @@ export const NotesIteratorMobile = ({
return (
<div className="p-4">
<div className="text-center text-muted-foreground mb-4">
- {translate("crm.notes.list.error_loading", {
+ {translate("resources.notes.list.error_loading", {
_: "Error loading notes",
})}
</div>
diff --git a/src/components/atomic-crm/root/englishCrmMessages.ts b/src/components/atomic-crm/root/englishCrmMessages.ts
index 11912da0..2c1e3657 100644
--- a/src/components/atomic-crm/root/englishCrmMessages.ts
+++ b/src/components/atomic-crm/root/englishCrmMessages.ts
@@ -2,6 +2,7 @@ export const englishCrmMessages = {
resources: {
companies: {
name: "Company |||| Companies",
+ forcedCaseName: "Company",
fields: {
name: "Company name",
website: "Website",
@@ -22,125 +23,6 @@ export const englishCrmMessages = {
context_links: "Context links",
sales_id: "Account manager",
},
- },
- contacts: {
- name: "Contact |||| Contacts",
- fields: {
- first_name: "First name",
- last_name: "Last name",
- last_seen: "Last seen",
- title: "Title",
- company_id: "Company",
- email_jsonb: "Email addresses",
- email: "Email",
- phone_jsonb: "Phone numbers",
- phone_number: "Phone number",
- linkedin_url: "LinkedIn URL",
- background: "Background info (bio, how you met, etc)",
- has_newsletter: "Has newsletter",
- sales_id: "Account manager",
- },
- },
- deals: {
- name: "Deal |||| Deals",
- fields: {
- name: "Name",
- description: "Description",
- company_id: "Company",
- contact_ids: "Contacts",
- category: "Category",
- amount: "Budget",
- expected_closing_date: "Expected closing date",
- stage: "Stage",
- },
- },
- notes: {
- name: "Note |||| Notes",
- fields: {
- status: "Status",
- date: "Date",
- attachments: "Attachments",
- contact_id: "Contact",
- deal_id: "Deal",
- },
- },
- sales: {
- name: "User |||| Users",
- fields: {
- first_name: "First name",
- last_name: "Last name",
- email: "Email",
- administrator: "Admin",
- disabled: "Disabled",
- },
- },
- tasks: {
- name: "Task |||| Tasks",
- fields: {
- text: "Description",
- due_date: "Due date",
- type: "Type",
- contact_id: "Contact",
- due_short: "due",
- },
- },
- },
- 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",
- added: "added",
- ago: "ago",
- by: "By",
- details: "Details",
- errors: "errors",
- invalid_date: "Invalid date",
- 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",
- account_manager: "Account manager",
- at: "at",
- copied: "Copied!",
- copy: "Copy",
- loading: "Loading...",
- me: "Me",
- task_count: "task |||| tasks",
- },
- activity: {
- you: "You",
- added_company: "added company",
- added_contact: "added",
- added_note_about: "added a note about",
- added_note_about_self: "added a note about",
- added_note_about_deal: "added a note about deal",
- added_note_about_deal_self: "added a note about deal",
- added_deal: "added deal",
- to: "to",
- load_more: "Load more activity",
- },
- companies: {
empty: {
description: "It seems your company list is empty.",
title: "No companies found",
@@ -151,8 +33,6 @@ export const englishCrmMessages = {
contact: "Contact",
context: "Context",
},
- name: "Company |||| Companies",
- forcedCaseName: "Company",
action: {
create: "Create Company",
edit: "Edit company",
@@ -193,6 +73,23 @@ export const englishCrmMessages = {
},
},
contacts: {
+ name: "Contact |||| Contacts",
+ forcedCaseName: "Contact",
+ fields: {
+ first_name: "First name",
+ last_name: "Last name",
+ last_seen: "Last seen",
+ title: "Title",
+ company_id: "Company",
+ email_jsonb: "Email addresses",
+ email: "Email",
+ phone_jsonb: "Phone numbers",
+ phone_number: "Phone number",
+ linkedin_url: "LinkedIn URL",
+ background: "Background info (bio, how you met, etc)",
+ has_newsletter: "Has newsletter",
+ sales_id: "Account manager",
+ },
action: {
add: "Add contact",
add_first: "Add your first contact",
@@ -273,8 +170,6 @@ export const englishCrmMessages = {
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",
@@ -295,20 +190,18 @@ export const englishCrmMessages = {
title: "Hot Contacts",
},
},
- dashboard: {
- deals_chart: "Upcoming Deal Revenue",
- deals_pipeline: "Deals Pipeline",
- latest_activity: "Latest Activity",
- latest_activity_error: "Error loading latest activity",
- latest_notes: "My Latest Notes",
- stepper: {
- install: "Install Atomic CRM",
- progress: "%{step}/3 done",
- whats_next: "What's next?",
- },
- upcoming_tasks: "Upcoming Tasks",
- },
deals: {
+ name: "Deal |||| Deals",
+ fields: {
+ name: "Name",
+ description: "Description",
+ company_id: "Company",
+ contact_ids: "Contacts",
+ category: "Category",
+ amount: "Budget",
+ expected_closing_date: "Expected closing date",
+ stage: "Stage",
+ },
action: {
back_to_deal: "Back to deal",
create: "Create deal",
@@ -334,7 +227,6 @@ export const englishCrmMessages = {
success: "Deal unarchived",
},
updated: "Deal updated",
- name: "Deal |||| Deals",
empty: {
before_create: "before creating a deal.",
description: "It seems your deal list is empty.",
@@ -348,44 +240,16 @@ export const englishCrmMessages = {
won: "Won",
},
},
- 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: {
+ name: "Note |||| Notes",
+ forcedCaseName: "Note",
+ fields: {
+ status: "Status",
+ date: "Date",
+ attachments: "Attachments",
+ contact_id: "Contact",
+ deal_id: "Deal",
+ },
action: {
add: "Add note",
add_first: "Add your first note",
@@ -412,8 +276,6 @@ export const englishCrmMessages = {
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",
@@ -422,6 +284,14 @@ export const englishCrmMessages = {
},
},
sales: {
+ name: "User |||| Users",
+ fields: {
+ first_name: "First name",
+ last_name: "Last name",
+ email: "Email",
+ administrator: "Admin",
+ disabled: "Disabled",
+ },
create: {
error: "An error occurred while creating the user.",
success:
@@ -434,11 +304,172 @@ export const englishCrmMessages = {
success: "User updated successfully",
title: "Edit %{name}",
},
- name: "User |||| Users",
action: {
new: "New user",
},
},
+ tasks: {
+ name: "Task |||| Tasks",
+ forcedCaseName: "Task",
+ fields: {
+ text: "Description",
+ due_date: "Due date",
+ type: "Type",
+ contact_id: "Contact",
+ due_short: "due",
+ },
+ 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 task",
+ create_for: "Create task for",
+ },
+ sheet: {
+ edit: "Edit task",
+ edit_for: "Edit task for",
+ },
+ empty: "No tasks yet",
+ empty_list_hint: "Tasks added to your contacts will appear here.",
+ filters: {
+ later: "Later",
+ overdue: "Overdue",
+ this_week: "This week",
+ today: "Today",
+ tomorrow: "Tomorrow",
+ with_pending: "With pending tasks",
+ },
+ updated: "Task updated",
+ },
+ tags: {
+ name: "Tag |||| Tags",
+ action: {
+ add: "Add tag",
+ create_new: "Create new tag",
+ },
+ dialog: {
+ color: "Color",
+ create_title: "Create a new tag",
+ edit_title: "Edit tag",
+ name_label: "Tag name",
+ name_placeholder: "Enter tag name",
+ },
+ },
+ },
+ 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",
+ added: "added",
+ ago: "ago",
+ by: "By",
+ details: "Details",
+ errors: "errors",
+ invalid_date: "Invalid date",
+ 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",
+ account_manager: "Account manager",
+ at: "at",
+ copied: "Copied!",
+ copy: "Copy",
+ loading: "Loading...",
+ me: "Me",
+ task_count: "task |||| tasks",
+ },
+ activity: {
+ you: "You",
+ added_company: "added company",
+ added_contact: "added",
+ added_note_about: "added a note about",
+ added_note_about_self: "added a note about",
+ added_note_about_deal: "added a note about deal",
+ added_note_about_deal_self: "added a note about deal",
+ added_deal: "added deal",
+ to: "to",
+ load_more: "Load more activity",
+ },
+ dashboard: {
+ deals_chart: "Upcoming Deal Revenue",
+ deals_pipeline: "Deals Pipeline",
+ latest_activity: "Latest Activity",
+ latest_activity_error: "Error loading latest activity",
+ latest_notes: "My Latest Notes",
+ stepper: {
+ install: "Install Atomic CRM",
+ progress: "%{step}/3 done",
+ whats_next: "What's next?",
+ },
+ upcoming_tasks: "Upcoming Tasks",
+ },
+ 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",
+ },
settings: {
companies: {
sectors: "Sectors",
@@ -471,48 +502,13 @@ export const englishCrmMessages = {
duplicate: "Duplicate %{display_name}: %{items}",
in_use:
"Cannot remove %{display_name} that are still used by deals: %{items}",
- validating: "Validating…",
+ validating: "Validating\u2026",
entities: {
categories: "categories",
stages: "stages",
},
},
},
- 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 task",
- create_for: "Create task for",
- },
- sheet: {
- edit: "Edit task",
- edit_for: "Edit task for",
- },
- empty: "No tasks yet",
- empty_list_hint: "Tasks added to your contacts will appear here.",
- 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",
@@ -526,20 +522,6 @@ export const englishCrmMessages = {
navigation: {
label: "CRM navigation",
},
- tags: {
- name: "Tag |||| Tags",
- action: {
- add: "Add tag",
- create_new: "Create new tag",
- },
- dialog: {
- color: "Color",
- create_title: "Create a new tag",
- edit_title: "Edit tag",
- name_label: "Tag name",
- name_placeholder: "Enter tag name",
- },
- },
profile: {
inbound: {
description_prefix:
diff --git a/src/components/atomic-crm/root/frenchCrmMessages.ts b/src/components/atomic-crm/root/frenchCrmMessages.ts
index 21c80460..26faca62 100644
--- a/src/components/atomic-crm/root/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/root/frenchCrmMessages.ts
@@ -4,6 +4,7 @@ export const frenchCrmMessages = {
resources: {
companies: {
name: "Entreprise |||| Entreprises",
+ forcedCaseName: "Entreprise",
fields: {
name: "Nom de l'entreprise",
website: "Site web",
@@ -24,125 +25,6 @@ export const frenchCrmMessages = {
context_links: "URLs de contexte",
sales_id: "Responsable de compte",
},
- },
- contacts: {
- name: "Contact |||| Contacts",
- fields: {
- first_name: "Prénom",
- last_name: "Nom",
- last_seen: "Dernière activité",
- title: "Titre",
- company_id: "Entreprise",
- email_jsonb: "Adresses e-mail",
- email: "E-mail",
- phone_jsonb: "Numéros de téléphone",
- phone_number: "Numéro de téléphone",
- linkedin_url: "URL LinkedIn",
- background: "Informations de contexte",
- has_newsletter: "Abonné à la newsletter",
- sales_id: "Responsable de compte",
- },
- },
- deals: {
- name: "Affaire |||| Affaires",
- fields: {
- name: "Nom",
- description: "Description",
- company_id: "Entreprise",
- contact_ids: "Contacts",
- category: "Catégorie",
- amount: "Budget",
- expected_closing_date: "Date de clôture prévue",
- stage: "Étape",
- },
- },
- notes: {
- name: "Note |||| Notes",
- fields: {
- status: "Statut",
- date: "Date",
- attachments: "Pièces jointes",
- contact_id: "Contact",
- deal_id: "Affaire",
- },
- },
- sales: {
- name: "Utilisateur |||| Utilisateurs",
- fields: {
- first_name: "Prénom",
- last_name: "Nom",
- email: "E-mail",
- administrator: "Admin",
- disabled: "Désactivé",
- },
- },
- tasks: {
- name: "Tâche |||| Tâches",
- fields: {
- text: "Description",
- due_date: "Date d'échéance",
- type: "Type",
- contact_id: "Contact",
- due_short: "échéance",
- },
- },
- },
- 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é",
- added: "ajoutée",
- 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",
- on: "sur",
- 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",
- },
- activity: {
- you: "Vous",
- added_company: "a ajouté l'entreprise",
- added_contact: "a ajouté",
- added_note_about: "a ajouté une note sur",
- added_note_about_self: "avez ajouté une note sur",
- added_note_about_deal: "a ajouté une note sur l'affaire",
- added_note_about_deal_self: "avez ajouté une note sur l'affaire",
- added_deal: "a ajouté l'affaire",
- to: "à",
- load_more: "Charger plus d'activité",
- },
- companies: {
empty: {
description: "Il semble que la liste de vos entreprises soit vide.",
title: "Aucune entreprise trouvée",
@@ -153,8 +35,6 @@ export const frenchCrmMessages = {
contact: "Contact",
context: "Contexte",
},
- name: "Entreprise |||| Entreprises",
- forcedCaseName: "Entreprise",
action: {
create: "Créer une entreprise",
edit: "Modifier l'entreprise",
@@ -196,6 +76,23 @@ export const frenchCrmMessages = {
},
},
contacts: {
+ name: "Contact |||| Contacts",
+ forcedCaseName: "Contact",
+ fields: {
+ first_name: "Prénom",
+ last_name: "Nom",
+ last_seen: "Dernière activité",
+ title: "Titre",
+ company_id: "Entreprise",
+ email_jsonb: "Adresses e-mail",
+ email: "E-mail",
+ phone_jsonb: "Numéros de téléphone",
+ phone_number: "Numéro de téléphone",
+ linkedin_url: "URL LinkedIn",
+ background: "Informations de contexte",
+ has_newsletter: "Abonné à la newsletter",
+ sales_id: "Responsable de compte",
+ },
action: {
add: "Ajouter un contact",
add_first: "Ajoutez votre premier contact",
@@ -220,7 +117,7 @@ export const frenchCrmMessages = {
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é :",
+ 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:
@@ -274,11 +171,9 @@ export const frenchCrmMessages = {
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é :",
+ 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",
@@ -299,21 +194,18 @@ export const frenchCrmMessages = {
title: "Contacts chauds",
},
},
- dashboard: {
- deals_chart: "Revenus des affaires à venir",
- deals_pipeline: "Pipeline des affaires",
- latest_activity: "Dernière activité",
- latest_activity_error:
- "Erreur lors du chargement de la dernière activité",
- latest_notes: "Mes dernières notes",
- stepper: {
- install: "Installer Atomic CRM",
- progress: "%{step}/3 terminé",
- whats_next: "Et ensuite ?",
- },
- upcoming_tasks: "Tâches à venir",
- },
deals: {
+ name: "Affaire |||| Affaires",
+ fields: {
+ name: "Nom",
+ description: "Description",
+ company_id: "Entreprise",
+ contact_ids: "Contacts",
+ category: "Catégorie",
+ amount: "Budget",
+ expected_closing_date: "Date de clôture prévue",
+ stage: "Étape",
+ },
action: {
back_to_deal: "Retour à l'affaire",
create: "Créer une affaire",
@@ -339,7 +231,6 @@ export const frenchCrmMessages = {
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.",
@@ -353,44 +244,16 @@ export const frenchCrmMessages = {
won: "Gagné",
},
},
- header: {
- import_data: "Importer des données",
- },
- image_editor: {
- change: "Changer",
- 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: {
+ name: "Note |||| Notes",
+ forcedCaseName: "Note",
+ fields: {
+ status: "Statut",
+ date: "Date",
+ attachments: "Pièces jointes",
+ contact_id: "Contact",
+ deal_id: "Affaire",
+ },
action: {
add: "Ajouter une note",
add_first: "Ajoutez votre première note",
@@ -417,8 +280,6 @@ export const frenchCrmMessages = {
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",
@@ -427,6 +288,14 @@ export const frenchCrmMessages = {
},
},
sales: {
+ name: "Utilisateur |||| Utilisateurs",
+ fields: {
+ first_name: "Prénom",
+ last_name: "Nom",
+ email: "E-mail",
+ administrator: "Admin",
+ disabled: "Désactivé",
+ },
create: {
error:
"Une erreur s'est produite lors de la création de l'utilisateur.",
@@ -440,11 +309,173 @@ export const frenchCrmMessages = {
success: "Utilisateur mis à jour avec succès",
title: "Modifier %{name}",
},
- name: "Utilisateur |||| Utilisateurs",
action: {
new: "Nouvel utilisateur",
},
},
+ tasks: {
+ name: "Tâche |||| Tâches",
+ forcedCaseName: "Tâche",
+ fields: {
+ text: "Description",
+ due_date: "Date d'échéance",
+ type: "Type",
+ contact_id: "Contact",
+ due_short: "échéance",
+ },
+ 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 tâche",
+ create_for: "Créer une tâche pour",
+ },
+ sheet: {
+ edit: "Modifier la tâche",
+ edit_for: "Modifier la tâche pour",
+ },
+ empty: "Aucune tâche pour l'instant",
+ empty_list_hint: "Les tâches ajoutées à vos contacts apparaîtront ici.",
+ 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",
+ },
+ tags: {
+ name: "Étiquette |||| Étiquettes",
+ action: {
+ add: "Ajouter une étiquette",
+ create_new: "Créer une nouvelle étiquette",
+ },
+ dialog: {
+ color: "Couleur",
+ create_title: "Créer une nouvelle étiquette",
+ edit_title: "Modifier l'étiquette",
+ name_label: "Nom de l'étiquette",
+ name_placeholder: "Saisir le nom de l'étiquette",
+ },
+ },
+ },
+ 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é",
+ added: "ajoutée",
+ 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",
+ on: "sur",
+ 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",
+ },
+ activity: {
+ you: "Vous",
+ added_company: "a ajouté l'entreprise",
+ added_contact: "a ajouté",
+ added_note_about: "a ajouté une note sur",
+ added_note_about_self: "avez ajouté une note sur",
+ added_note_about_deal: "a ajouté une note sur l'affaire",
+ added_note_about_deal_self: "avez ajouté une note sur l'affaire",
+ added_deal: "a ajouté l'affaire",
+ to: "à",
+ load_more: "Charger plus d'activité",
+ },
+ dashboard: {
+ deals_chart: "Revenus des affaires à venir",
+ deals_pipeline: "Pipeline des affaires",
+ latest_activity: "Dernière activité",
+ latest_activity_error:
+ "Erreur lors du chargement de la dernière activité",
+ latest_notes: "Mes dernières notes",
+ stepper: {
+ install: "Installer Atomic CRM",
+ progress: "%{step}/3 terminé",
+ whats_next: "Et ensuite ?",
+ },
+ upcoming_tasks: "Tâches à venir",
+ },
+ header: {
+ import_data: "Importer des données",
+ },
+ image_editor: {
+ change: "Changer",
+ 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",
+ },
settings: {
companies: {
sectors: "Secteurs",
@@ -477,48 +508,13 @@ export const frenchCrmMessages = {
duplicate: "%{display_name} en double : %{items}",
in_use:
"Impossible de supprimer %{display_name} encore utilisés par des affaires : %{items}",
- validating: "Validation…",
+ validating: "Validation\u2026",
entities: {
categories: "catégories",
stages: "étapes",
},
},
},
- 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 tâche",
- create_for: "Créer une tâche pour",
- },
- sheet: {
- edit: "Modifier la tâche",
- edit_for: "Modifier la tâche pour",
- },
- empty: "Aucune tâche pour l'instant",
- empty_list_hint: "Les tâches ajoutées à vos contacts apparaîtront ici.",
- 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",
@@ -532,20 +528,6 @@ export const frenchCrmMessages = {
navigation: {
label: "Navigation CRM",
},
- tags: {
- name: "Étiquette |||| Étiquettes",
- action: {
- add: "Ajouter une étiquette",
- create_new: "Créer une nouvelle étiquette",
- },
- dialog: {
- color: "Couleur",
- create_title: "Créer une nouvelle étiquette",
- edit_title: "Modifier l'étiquette",
- name_label: "Nom de l'étiquette",
- name_placeholder: "Saisir le nom de l'étiquette",
- },
- },
profile: {
inbound: {
description_prefix:
diff --git a/src/components/atomic-crm/root/i18nProvider.test.ts b/src/components/atomic-crm/root/i18nProvider.test.ts
index 57e568ea..c27ec901 100644
--- a/src/components/atomic-crm/root/i18nProvider.test.ts
+++ b/src/components/atomic-crm/root/i18nProvider.test.ts
@@ -40,13 +40,13 @@ describe("i18nProvider", () => {
it("translates recently added fr crm keys", async () => {
await i18nProvider.changeLocale("fr");
- expect(i18nProvider.translate("crm.deals.empty.title")).toBe(
+ expect(i18nProvider.translate("resources.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(
+ expect(
+ i18nProvider.translate("resources.companies.filters.only_mine"),
+ ).toBe("Seulement les entreprises que je gère");
+ expect(i18nProvider.translate("resources.companies.contacts.none")).toBe(
"Aucun contact",
);
});
diff --git a/src/components/atomic-crm/sales/SalesCreate.tsx b/src/components/atomic-crm/sales/SalesCreate.tsx
index e56658b1..2b6458f9 100644
--- a/src/components/atomic-crm/sales/SalesCreate.tsx
+++ b/src/components/atomic-crm/sales/SalesCreate.tsx
@@ -20,7 +20,7 @@ export function SalesCreate() {
return dataProvider.salesCreate(data);
},
onSuccess: () => {
- notify("crm.sales.create.success", {
+ notify("resources.sales.create.success", {
messageArgs: {
_: "User created. They will soon receive an email to set their password.",
},
@@ -30,7 +30,7 @@ export function SalesCreate() {
onError: (error) => {
notify(
error.message ||
- translate("crm.sales.create.error", {
+ translate("resources.sales.create.error", {
_: "An error occurred while creating the user.",
}),
{
@@ -48,7 +48,9 @@ export function SalesCreate() {
<Card>
<CardHeader>
<CardTitle>
- {translate("crm.sales.create.title", { _: "Create a new user" })}
+ {translate("resources.sales.create.title", {
+ _: "Create a new user",
+ })}
</CardTitle>
</CardHeader>
<CardContent>
diff --git a/src/components/atomic-crm/sales/SalesEdit.tsx b/src/components/atomic-crm/sales/SalesEdit.tsx
index 908f68e5..8befa7a5 100644
--- a/src/components/atomic-crm/sales/SalesEdit.tsx
+++ b/src/components/atomic-crm/sales/SalesEdit.tsx
@@ -39,7 +39,7 @@ export function SalesEdit() {
mutationFn: async (data: SalesFormData) => {
if (!record) {
throw new Error(
- translate("crm.sales.edit.record_not_found", {
+ translate("resources.sales.edit.record_not_found", {
_: "Record not found",
}),
);
@@ -48,14 +48,14 @@ export function SalesEdit() {
},
onSuccess: () => {
redirect("/sales");
- notify("crm.sales.edit.success", {
+ notify("resources.sales.edit.success", {
messageArgs: {
_: "User updated successfully",
},
});
},
onError: () => {
- notify("crm.sales.edit.error", {
+ notify("resources.sales.edit.error", {
type: "error",
messageArgs: {
_: "An error occurred. Please try again.",
@@ -92,7 +92,7 @@ const SaleEditTitle = () => {
if (!record) return null;
return (
<h2 className="text-lg font-semibold mb-4">
- {translate("crm.sales.edit.title", {
+ {translate("resources.sales.edit.title", {
name: `${record.first_name} ${record.last_name}`,
_: `Edit ${record.first_name} ${record.last_name}`,
})}
diff --git a/src/components/atomic-crm/sales/SalesList.tsx b/src/components/atomic-crm/sales/SalesList.tsx
index 4ff010ce..87f1c8f8 100644
--- a/src/components/atomic-crm/sales/SalesList.tsx
+++ b/src/components/atomic-crm/sales/SalesList.tsx
@@ -14,7 +14,7 @@ const SalesListActions = () => {
<TopToolbar>
<ExportButton />
<CreateButton
- label={translate("crm.sales.action.new", { _: "New user" })}
+ label={translate("resources.sales.action.new", { _: "New user" })}
/>
</TopToolbar>
);
@@ -52,7 +52,7 @@ export function SalesList() {
const translate = useTranslate();
return (
<List
- title={translate("crm.sales.name", { smart_count: 2, _: "Users" })}
+ title={translate("resources.sales.name", { smart_count: 2, _: "Users" })}
filters={filters}
actions={<SalesListActions />}
sort={{ field: "first_name", order: "ASC" }}
diff --git a/src/components/atomic-crm/settings/SettingsPage.tsx b/src/components/atomic-crm/settings/SettingsPage.tsx
index a4cc528e..f1ad3823 100644
--- a/src/components/atomic-crm/settings/SettingsPage.tsx
+++ b/src/components/atomic-crm/settings/SettingsPage.tsx
@@ -34,12 +34,12 @@ const SECTIONS = [
},
{
id: "companies",
- label: "crm.companies.name",
+ label: "resources.companies.name",
fallback: "Companies",
},
- { id: "deals", label: "crm.deals.name", fallback: "Deals" },
- { id: "notes", label: "crm.notes.name", fallback: "Notes" },
- { id: "tasks", label: "crm.tasks.name", fallback: "Tasks" },
+ { id: "deals", label: "resources.deals.name", fallback: "Deals" },
+ { id: "notes", label: "resources.notes.name", fallback: "Notes" },
+ { id: "tasks", label: "resources.tasks.name", fallback: "Tasks" },
];
/** Ensure every item in a { value, label } array has a value (slug from label). */
@@ -268,7 +268,7 @@ const SettingsFormFields = () => {
<Card id="companies">
<CardContent className="space-y-4">
<h2 className="text-xl font-semibold text-muted-foreground">
- {translate("crm.companies.name", {
+ {translate("resources.companies.name", {
smart_count: 2,
_: "Companies",
})}
@@ -292,7 +292,7 @@ const SettingsFormFields = () => {
<Card id="deals">
<CardContent className="space-y-4">
<h2 className="text-xl font-semibold text-muted-foreground">
- {translate("crm.deals.name", {
+ {translate("resources.deals.name", {
smart_count: 2,
_: "Deals",
})}
@@ -378,7 +378,7 @@ const SettingsFormFields = () => {
<Card id="notes">
<CardContent className="space-y-4">
<h2 className="text-xl font-semibold text-muted-foreground">
- {translate("crm.notes.name", {
+ {translate("resources.notes.name", {
smart_count: 2,
_: "Notes",
})}
@@ -399,7 +399,7 @@ const SettingsFormFields = () => {
<Card id="tasks">
<CardContent className="space-y-4">
<h2 className="text-xl font-semibold text-muted-foreground">
- {translate("crm.tasks.name", {
+ {translate("resources.tasks.name", {
smart_count: 2,
_: "Tasks",
})}
diff --git a/src/components/atomic-crm/tags/TagCreateModal.tsx b/src/components/atomic-crm/tags/TagCreateModal.tsx
index de662303..36f47c06 100644
--- a/src/components/atomic-crm/tags/TagCreateModal.tsx
+++ b/src/components/atomic-crm/tags/TagCreateModal.tsx
@@ -32,7 +32,7 @@ export function TagCreateModal({
return (
<TagDialog
open={open}
- title={translate("crm.tags.dialog.create_title", {
+ title={translate("resources.tags.dialog.create_title", {
_: "Create a new tag",
})}
onClose={onClose}
diff --git a/src/components/atomic-crm/tags/TagDialog.tsx b/src/components/atomic-crm/tags/TagDialog.tsx
index cdd42795..878308c4 100644
--- a/src/components/atomic-crm/tags/TagDialog.tsx
+++ b/src/components/atomic-crm/tags/TagDialog.tsx
@@ -73,22 +73,27 @@ export function TagDialog({
<div className="space-y-4 py-4">
<div className="space-y-2">
<Label htmlFor="tag-name">
- {translate("crm.tags.dialog.name_label", { _: "Tag name" })}
+ {translate("resources.tags.dialog.name_label", {
+ _: "Tag name",
+ })}
</Label>
<Input
id="tag-name"
autoFocus
value={newTagName}
onChange={handleNewTagNameChange}
- placeholder={translate("crm.tags.dialog.name_placeholder", {
- _: "Enter tag name",
- })}
+ placeholder={translate(
+ "resources.tags.dialog.name_placeholder",
+ {
+ _: "Enter tag name",
+ },
+ )}
/>
</div>
<div className="space-y-2">
<Label>
- {translate("crm.tags.dialog.color", { _: "Color" })}
+ {translate("resources.tags.dialog.color", { _: "Color" })}
</Label>
<div className="flex flex-wrap">
{colors.map((color) => (
diff --git a/src/components/atomic-crm/tags/TagEditModal.tsx b/src/components/atomic-crm/tags/TagEditModal.tsx
index 92afc2a1..ff4ae293 100644
--- a/src/components/atomic-crm/tags/TagEditModal.tsx
+++ b/src/components/atomic-crm/tags/TagEditModal.tsx
@@ -34,7 +34,7 @@ export function TagEditModal({
return (
<TagDialog
open={open}
- title={translate("crm.tags.dialog.edit_title", { _: "Edit tag" })}
+ title={translate("resources.tags.dialog.edit_title", { _: "Edit tag" })}
onClose={onClose}
onSubmit={handleEditTag}
tag={tag}
diff --git a/src/components/atomic-crm/tasks/AddTask.tsx b/src/components/atomic-crm/tasks/AddTask.tsx
index f169d0f5..5d187ac5 100644
--- a/src/components/atomic-crm/tasks/AddTask.tsx
+++ b/src/components/atomic-crm/tasks/AddTask.tsx
@@ -60,7 +60,7 @@ export const AddTask = ({
previousData: contact.data,
});
- notify("crm.tasks.added", {
+ notify("resources.tasks.added", {
messageArgs: { _: "Task added" },
});
};
@@ -83,7 +83,7 @@ export const AddTask = ({
</Button>
</TooltipTrigger>
<TooltipContent>
- {translate("crm.tasks.action.create", { _: "Create task" })}
+ {translate("resources.tasks.action.create", { _: "Create task" })}
</TooltipContent>
</Tooltip>
</TooltipProvider>
@@ -96,7 +96,7 @@ export const AddTask = ({
size="sm"
>
<Plus className="w-4 h-4" />
- {translate("crm.tasks.action.add", { _: "Add task" })}
+ {translate("resources.tasks.action.add", { _: "Add task" })}
</Button>
</div>
)}
@@ -117,10 +117,10 @@ export const AddTask = ({
<DialogHeader>
<DialogTitle>
{!selectContact
- ? translate("crm.tasks.dialog.create_for", {
+ ? translate("resources.tasks.dialog.create_for", {
_: "Create task for",
})
- : translate("crm.tasks.dialog.create", {
+ : translate("resources.tasks.dialog.create", {
_: "Create task",
})}
{!selectContact && (
diff --git a/src/components/atomic-crm/tasks/MobileTasksList.tsx b/src/components/atomic-crm/tasks/MobileTasksList.tsx
index 9f8f9128..e2661f03 100644
--- a/src/components/atomic-crm/tasks/MobileTasksList.tsx
+++ b/src/components/atomic-crm/tasks/MobileTasksList.tsx
@@ -9,7 +9,7 @@ export const MobileTasksList = () => {
<>
<MobileHeader>
<h1 className="text-xl font-semibold">
- {translate("crm.tasks.name", { smart_count: 2, _: "Tasks" })}
+ {translate("resources.tasks.name", { smart_count: 2, _: "Tasks" })}
</h1>
</MobileHeader>
<MobileContent>
diff --git a/src/components/atomic-crm/tasks/Task.tsx b/src/components/atomic-crm/tasks/Task.tsx
index ad23f84c..3b9310a4 100644
--- a/src/components/atomic-crm/tasks/Task.tsx
+++ b/src/components/atomic-crm/tasks/Task.tsx
@@ -50,7 +50,7 @@ export const Task = ({
redirect: false,
mutationOptions: {
onSuccess() {
- notify("crm.tasks.deleted", {
+ notify("resources.tasks.deleted", {
undoable: true,
messageArgs: {
_: "Task deleted successfully",
@@ -156,7 +156,7 @@ export const Task = ({
variant="ghost"
size="icon"
className="h-5 pr-0! size-8 cursor-pointer"
- aria-label={translate("crm.tasks.actions.title", {
+ aria-label={translate("resources.tasks.actions.title", {
_: "task actions",
})}
>
@@ -178,7 +178,7 @@ export const Task = ({
});
}}
>
- {translate("crm.tasks.actions.postpone_tomorrow", {
+ {translate("resources.tasks.actions.postpone_tomorrow", {
_: "Postpone to tomorrow",
})}
</DropdownMenuItem>
@@ -196,7 +196,7 @@ export const Task = ({
});
}}
>
- {translate("crm.tasks.actions.postpone_next_week", {
+ {translate("resources.tasks.actions.postpone_next_week", {
_: "Postpone to next week",
})}
</DropdownMenuItem>
diff --git a/src/components/atomic-crm/tasks/TaskCreateSheet.tsx b/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
index 0b88585d..fd250f63 100644
--- a/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
+++ b/src/components/atomic-crm/tasks/TaskCreateSheet.tsx
@@ -50,7 +50,7 @@ export const TaskCreateSheet = ({
data: { last_seen: new Date().toISOString() },
previousData: contact,
});
- notify("crm.tasks.added", {
+ notify("resources.tasks.added", {
messageArgs: { _: "Task added" },
});
// No redirect, only close the sheet
@@ -63,10 +63,10 @@ export const TaskCreateSheet = ({
title={
<h1 className="text-xl font-semibold truncate pr-10">
{!selectContact
- ? translate("crm.tasks.dialog.create_for", {
+ ? translate("resources.tasks.dialog.create_for", {
_: "Create task for",
})
- : translate("crm.tasks.dialog.create", { _: "Create task" })}
+ : translate("resources.tasks.dialog.create", { _: "Create task" })}
{!selectContact && (
<>
{" "}
diff --git a/src/components/atomic-crm/tasks/TaskEdit.tsx b/src/components/atomic-crm/tasks/TaskEdit.tsx
index 0658c06d..840e8fcf 100644
--- a/src/components/atomic-crm/tasks/TaskEdit.tsx
+++ b/src/components/atomic-crm/tasks/TaskEdit.tsx
@@ -38,7 +38,7 @@ export const TaskEdit = ({
mutationOptions={{
onSuccess: () => {
close();
- notify("crm.tasks.updated", {
+ notify("resources.tasks.updated", {
type: "info",
undoable: true,
messageArgs: {
@@ -53,7 +53,7 @@ export const TaskEdit = ({
<Form className="flex flex-col gap-4">
<DialogHeader>
<DialogTitle>
- {translate("crm.tasks.action.edit", { _: "Edit task" })}
+ {translate("resources.tasks.action.edit", { _: "Edit task" })}
</DialogTitle>
</DialogHeader>
<TaskFormContent />
@@ -62,7 +62,7 @@ export const TaskEdit = ({
mutationOptions={{
onSuccess: () => {
close();
- notify("crm.tasks.deleted", {
+ notify("resources.tasks.deleted", {
type: "info",
undoable: true,
messageArgs: {
diff --git a/src/components/atomic-crm/tasks/TaskEditSheet.tsx b/src/components/atomic-crm/tasks/TaskEditSheet.tsx
index 3e478c08..f47b84f8 100644
--- a/src/components/atomic-crm/tasks/TaskEditSheet.tsx
+++ b/src/components/atomic-crm/tasks/TaskEditSheet.tsx
@@ -27,7 +27,7 @@ export const TaskEditSheet = ({
<h1 className="text-xl font-semibold truncate pr-10">
{referenceRecord ? (
<>
- {translate("crm.tasks.sheet.edit_for", {
+ {translate("resources.tasks.sheet.edit_for", {
_: "Edit task for",
})}{" "}
<RecordRepresentation
@@ -36,7 +36,7 @@ export const TaskEditSheet = ({
/>
</>
) : (
- translate("crm.tasks.sheet.edit", { _: "Edit task" })
+ translate("resources.tasks.sheet.edit", { _: "Edit task" })
)}
</h1>
)}
diff --git a/src/components/atomic-crm/tasks/TasksListByDueDate.tsx b/src/components/atomic-crm/tasks/TasksListByDueDate.tsx
index e567df6f..aeb745f5 100644
--- a/src/components/atomic-crm/tasks/TasksListByDueDate.tsx
+++ b/src/components/atomic-crm/tasks/TasksListByDueDate.tsx
@@ -103,33 +103,35 @@ export const TasksListByDueDate = ({
<div className="flex flex-col gap-4">
<TaskListFilter
tasks={overdueTasks}
- title={translate("crm.tasks.filters.overdue", { _: "Overdue" })}
+ title={translate("resources.tasks.filters.overdue", { _: "Overdue" })}
showContact={showContact}
isMobile={isMobile}
/>
<TaskListFilter
tasks={dueTodayTasks}
- title={translate("crm.tasks.filters.today", { _: "Today" })}
+ title={translate("resources.tasks.filters.today", { _: "Today" })}
showContact={showContact}
isMobile={isMobile}
/>
<TaskListFilter
tasks={dueTomorrowTasks}
- title={translate("crm.tasks.filters.tomorrow", { _: "Tomorrow" })}
+ title={translate("resources.tasks.filters.tomorrow", { _: "Tomorrow" })}
showContact={showContact}
isMobile={isMobile}
/>
{(!filterByContact || (filterByContact && isBeforeFriday())) && (
<TaskListFilter
tasks={dueThisWeekTasks}
- title={translate("crm.tasks.filters.this_week", { _: "This week" })}
+ title={translate("resources.tasks.filters.this_week", {
+ _: "This week",
+ })}
showContact={showContact}
isMobile={isMobile}
/>
)}
<TaskListFilter
tasks={dueLaterTasks}
- title={translate("crm.tasks.filters.later", { _: "Later" })}
+ title={translate("resources.tasks.filters.later", { _: "Later" })}
showContact={showContact}
isMobile={isMobile}
/>
diff --git a/src/components/atomic-crm/tasks/TasksListContent.tsx b/src/components/atomic-crm/tasks/TasksListContent.tsx
index 994dd597..a427c837 100644
--- a/src/components/atomic-crm/tasks/TasksListContent.tsx
+++ b/src/components/atomic-crm/tasks/TasksListContent.tsx
@@ -8,7 +8,7 @@ export const TasksListContent = () => {
<TasksListByDueDate
emptyPlaceholder={
<p className="text-sm">
- {translate("crm.tasks.empty_list_hint", {
+ {translate("resources.tasks.empty_list_hint", {
_: "Tasks added to your contacts will appear here.",
})}
</p>