Update user friendly errors for translations (#15000)

Force msg typing instead of string for user friendly errors
This commit is contained in:
Félix Malfait
2025-10-09 18:17:32 +02:00
committed by GitHub
parent 660cd38f35
commit e577c2d746
124 changed files with 796 additions and 563 deletions
@@ -1,4 +1,4 @@
import { t } from '@lingui/core/macro';
import { msg } from '@lingui/core/macro';
import { isDefined } from 'twenty-shared/utils';
import { QueryFailedError } from 'typeorm';
@@ -25,7 +25,7 @@ export const computeTwentyORMException = (
'Query read timeout',
TwentyORMExceptionCode.QUERY_READ_TIMEOUT,
{
userFriendlyMessage: t`We are experiencing a temporary issue with our database. Please try again later.`,
userFriendlyMessage: msg`We are experiencing a temporary issue with our database. Please try again later.`,
},
);
}