diff --git a/ts/lib/generated/ftl-helpers.ts b/ts/lib/generated/ftl-helpers.ts index 5c5e0febd4a..fcbacc0d5f9 100644 --- a/ts/lib/generated/ftl-helpers.ts +++ b/ts/lib/generated/ftl-helpers.ts @@ -49,7 +49,17 @@ function getMessage( for (const bundle of bundles) { const msg = bundle.getMessage(key); if (msg && msg.value) { - return bundle.formatPattern(msg.value, formatArgs(args)); + const errors = []; + const formatted = bundle.formatPattern(msg.value, formatArgs(args), errors); + if (errors.length) { + console.warn( + `Found issues in translation string ${key} with locales ${bundle.locales}:`, + ); + for (const error of errors) { + console.error(error); + } + } + return formatted; } }