be: determine language in middleware application filtering request and adding new lang param