Made getLanguages method able to call without init class