Can I customize the restriction error message?

I am using uppy in a svelte application. I need to display the restrictions error messages to the users (the easy part). But I need those messages to be customized and using the i18n svelte files. Is it possible to do it? If yes how can do it ? Actually I used beforeFileAdded but this solution does not catch the restriction error like restriction-failed.

Hi, checkout out docs on internationalisation.

You can see all the strings here.