suppressing error logs for next-intl?
Unanswered
American black bear posted this in #help-forum
American black bearOP
I'm trying to suppress errors logged on the console by useTranslations() when items are not found and other reasons and have not been able to figure out how to do it. I'm using a nextJs template that uses this module and have implemented an onError handler in the wrapping component but it complains event handlers cannot be passed to client component props. anyone out there that could help?
3 Replies
American black bearOP
I'm unable to find a way to edit the title
never mind. figured it out
American black bearOP
alternatively, how can I catch INVALID_MESSAGE and MISSING_MESSAGE errors? try/catch doesn't seem to work