We could say is the same functionality “language” is doing, adding a prefix to the url so you can determine language, but I don’t know how to implement that
I just need to have this first parameter so set a global variable so I can modify the db requests, the rest part of the url should work the same wordpress is doing.