Locale discovery across PHP components