Skip to content

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

Fix missing i18n keys

Jean-Baptiste Kaiserfc48051c5a2a
diff --git a/src/components/atomic-crm/login/SignupPage.tsx b/src/components/atomic-crm/login/SignupPage.tsx
index 7bd66ddb..7d586f03 100644
--- a/src/components/atomic-crm/login/SignupPage.tsx
+++ b/src/components/atomic-crm/login/SignupPage.tsx
@@ -124,7 +124,7 @@ export const SignupPage = () => {
<form onSubmit={handleSubmit(onSubmit)} className="space-y-4">
<div className="flex flex-col gap-2">
<Label htmlFor="first_name">
- {translate("ra.auth.first_name")}
+ {translate("crm.auth.first_name")}
</Label>
<Input
{...register("first_name", { required: true })}
@@ -135,7 +135,7 @@ export const SignupPage = () => {
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="last_name">
- {translate("ra.auth.last_name")}
+ {translate("crm.auth.last_name")}
</Label>
<Input
{...register("last_name", { required: true })}
diff --git a/src/components/atomic-crm/providers/commons/englishCrmMessages.ts b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
index 4c51b6a5..79089f22 100644
--- a/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/englishCrmMessages.ts
@@ -57,6 +57,9 @@ export const englishCrmMessages = {
create_item: "Create %{item}",
create_label: "Start typing to create a new company",
},
+ filters: {
+ only_mine: "Only companies I manage",
+ },
},
contacts: {
name: "Contact |||| Contacts",
@@ -343,7 +346,13 @@ export const englishCrmMessages = {
},
},
crm: {
+ action: {
+ reset_password: "Reset Password",
+ },
auth: {
+ first_name: "First name",
+ last_name: "Last name",
+ confirm_password: "Confirm password",
confirmation_required:
"Please follow the link we just sent you by email to confirm your account.",
recovery_email_sent:
diff --git a/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
index 3ca38824..da056f79 100644
--- a/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
+++ b/src/components/atomic-crm/providers/commons/frenchCrmMessages.ts
@@ -60,6 +60,9 @@ export const frenchCrmMessages = {
create_item: "Créer %{item}",
create_label: "Commencez à taper pour créer une nouvelle entreprise",
},
+ filters: {
+ only_mine: "Seulement les entreprises que je gère",
+ },
},
contacts: {
name: "Contact |||| Contacts",
@@ -348,7 +351,13 @@ export const frenchCrmMessages = {
},
},
crm: {
+ action: {
+ reset_password: "Réinitialiser le mot de passe",
+ },
auth: {
+ first_name: "Prénom",
+ last_name: "Nom",
+ confirm_password: "Confirmer le mot de passe",
confirmation_required:
"Veuillez suivre le lien que nous venons de vous envoyer par email pour confirmer votre compte.",
recovery_email_sent:
diff --git a/src/components/supabase/forgot-password-page.tsx b/src/components/supabase/forgot-password-page.tsx
index 53321295..d7ae76a4 100644
--- a/src/components/supabase/forgot-password-page.tsx
+++ b/src/components/supabase/forgot-password-page.tsx
@@ -80,7 +80,7 @@ export const ForgotPasswordPage = () => {
validate={required()}
/>
<Button type="submit" className="cursor-pointer" disabled={loading}>
- {translate("ra.action.reset_password", {
+ {translate("crm.action.reset_password", {
_: "Reset password",
})}
</Button>
diff --git a/src/components/supabase/set-password-page.tsx b/src/components/supabase/set-password-page.tsx
index 6e456775..4771a4f2 100644
--- a/src/components/supabase/set-password-page.tsx
+++ b/src/components/supabase/set-password-page.tsx
@@ -101,7 +101,7 @@ export const SetPasswordPage = () => {
validate={required()}
/>
<TextInput
- label={translate("ra.auth.confirm_password", {
+ label={translate("crm.auth.confirm_password", {
_: "Confirm password",
})}
source="confirmPassword"