How to retrieve the list of available locales on the system

On UNIX™ systems, the locale -a command gives the names of available locales:
$ locale -a
... 
en_US 
en_US.iso885915 
en_US.utf8 
en_ZA 
en_ZA.utf8 
en_ZW
...