Model
Locale
Magento\Config\Model\Config\Source\Locale
What it does
This class provides a list of available locales (languages/regions) for use in Magento 2 configuration dropdowns and forms.
Developers would use this class when they need to display locale options in the admin panel, such as in system configuration settings where store owners select their preferred language or regional settings.
Public Methods
- toOptionArray()