Strapi v4 forces I18N Locale to lowercase

Hi,

The locale would default come in this format: aa-BB or aa-Bb-CC (e.g., es-US, fr-FR).

Is there a way to force it to lowercase in the URL in Strapi Dashboard UI without having to modify the underlining code?

http://localhost:1337/api/mycontent?locale=es-us instead of http://localhost:1337/api/mycontent?locale=es-US

Thank you.

You would most likely have to modify the i18n directly I recomand patch-package for this.

@Boegie19, thank you for replying. When you said “patch-package,” is it the actual name of the package or do you mean a plugin?

actual name of the node package