Implement getLocales function returning array with all locales