Skip to content

The open alternative to Salesforce, designed for AI.

fix: update date-utils test to expect French translation

Félix Malfait4d5d2233bcda
diff --git a/packages/twenty-front/src/utils/__tests__/date-utils.test.ts b/packages/twenty-front/src/utils/__tests__/date-utils.test.ts
index ede4704502e..6fbc2fd71ac 100644
--- a/packages/twenty-front/src/utils/__tests__/date-utils.test.ts
+++ b/packages/twenty-front/src/utils/__tests__/date-utils.test.ts
@@ -287,8 +287,8 @@ describe('French locale tests', () => {
const date = '2025-01-01T00:00:00.000Z';
const dateToCompareWith = '2024-01-01T00:00:00.000Z';
const result = beautifyDateDiff(date, dateToCompareWith, true, fr);
- // Manual implementation returns early with year count (English format)
- expect(result).toContain('year');
+ // Manual implementation with Lingui translations returns French
+ expect(result).toContain('an'); // French for year (singular)
});
it('should handle mixed years and days in French', () => {