So I can use solution with Kirby() to get user role and language variables will working too?
Kirby()
Yes.