Skip to content

Instantly share code, notes, and snippets.

@theodesp
Created December 7, 2019 15:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theodesp/5bd391d36e8858a4d2604f38cf790f41 to your computer and use it in GitHub Desktop.
Save theodesp/5bd391d36e8858a4d2604f38cf790f41 to your computer and use it in GitHub Desktop.
Locale::setDefault('el');
$allLocales = Intl::getLocaleBundle()->getLocaleNames();
// array('en' => 'Αγγλικά', 'en_SH' => 'Αγγλικά (Αγία Ελένη)', ...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment