Skip to content

Commit

Permalink
add warn when no trzn
Browse files Browse the repository at this point in the history
  • Loading branch information
ThibaultAndreis authored Nov 2, 2023
1 parent 3a62a4a commit c62f298
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const translate: Translations.Translate = ({
if (rest.hasOwnProperty('fallbackValue') ) {
return rest.fallbackValue;
}
logger.warn(`No translation nor fallback found for '${key}' .`);
}

return parser.parse(text, params, locale, key);
Expand Down

0 comments on commit c62f298

Please sign in to comment.