Smile\ElasticsuiteCore\Helper\IndexSettings::getLocaleCode PHP Method

getLocaleCode() public method

Return the locale code (eg.: "en_US") for a store.
public getLocaleCode ( integer | string | Magento\Store\Api\Data\StoreInterface $store ) : string
$store integer | string | Magento\Store\Api\Data\StoreInterface The store.
return string
    public function getLocaleCode($store)
    {
        $configPath = self::LOCALE_CODE_CONFIG_XML_PATH;
        $scopeType = ScopeInterface::SCOPE_STORES;
        $store = $this->getStore($store);
        return $this->scopeConfig->getValue($configPath, $scopeType, $store);
    }