Middleware Open Source for Locale

Hello Everyone,
I’m working on my CMS PerSeo, based on Slim 4. I was refactoring lot of code, so I decided to separate part of the code into separate repositories.
This is a Middleware that helps using locale in uri. It’s simple but, for me, the only practice solution to the problem.
This is the github repo: GitHub - BrainStormDevel/Slim4Locale: A simple middleware for Slim4 framework for using locale in uri
It’s installable by composer: brainstorm/slim4locale - Packagist
Every suggestion is well accepted.