Added missing getLocales function