Unable to render 404 page if i18n routing is configured

Not sure whether this is intended behaviour, but I'm unable to render any kind of 404 page when i18n is configured in astro.config.mjs.

Expected behavior if a route is not matched:

Expected behavior

Actual behavior:

Actual behavior