We should redirect to English with a banner saying we don't have translations for the requested language code.
This should be handled in a middleware that sets a cookie for rendering the banner after redirecting to the English version of the page. Redirect any two-letter paths that do not match the available locales. To find the available locales, check the i18n.availableLocales string array (retrieve i18n using the useI18n composable).
Resolution
[ ] 🙋 I would be interested in resolving this bug.
Description
Originally reported by @AetherUnbound
Example: https://openverse.org/cn
Additional context
We should redirect to English with a banner saying we don't have translations for the requested language code.
This should be handled in a middleware that sets a cookie for rendering the banner after redirecting to the English version of the page. Redirect any two-letter paths that do not match the available locales. To find the available locales, check the
i18n.availableLocales
string array (retrievei18n
using theuseI18n
composable).Resolution