diff --git a/src/common/translations/localize.ts b/src/common/translations/localize.ts index ee9522e141..1c13650812 100644 --- a/src/common/translations/localize.ts +++ b/src/common/translations/localize.ts @@ -86,11 +86,15 @@ export const computeLocalize = async ( | undefined; if (!translatedMessage) { - translatedMessage = new IntlMessageFormat( - translatedValue, - language, - formats - ); + try { + translatedMessage = new IntlMessageFormat( + translatedValue, + language, + formats + ); + } catch (err) { + return "Translation error: " + err.message; + } cache._localizationCache[messageKey] = translatedMessage; }