check function if locale is present in the current uri