From 4d5d2233bcda049ade3f0c5df407ca23309d8e0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?F=C3=A9lix=20Malfait?= Date: Tue, 23 Dec 2025 17:32:33 +0100 Subject: [PATCH] fix: update date-utils test to expect French translation Lingui translations work correctly for plural() macro, so the short format returns French 'an' not English 'year' --- packages/twenty-front/src/utils/__tests__/date-utils.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 ede4704502..6fbc2fd71a 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', () => {