Pagekit not working global function for languages