In Java, you can call Locale.getAvailableLocales() to get the list of available locales.
Locale.getAvailableLocales()
I was expecting an equivalent from the PHP Locale class, but co
I don't think there is a built in functions for this. You need to ask the operating system which locales are installed.
For example, if you run on a unix system you will need to execute the command:
$ locale -a