Page MenuHomePhorge
Diviner libphutil Tech Docs phutil_is_system_locale_available

function phutil_is_system_locale_available($locale)
libphutil Technical Documentation (Core Utilities)

Test if a system locale (LC_ALL) is available on the system.

Parameters
string$localeLocale name like "en_US.UTF-8".
Return
boolTrue if the locale is available.