\Magento\Store\Api\Data\StoreInterfaceまたはMagento\Framework\Locale\Resolverクラスを使用して、ストアの言語を取得できます。
  1)\Magento\Store\Api\Data\StoreInterfaceクラスを使用する
objectManagerを使用
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
$store = $objectManager->get('Magento\Store\Api\Data\StoreInterface'); 
echo $store->getLocaleCode();
依存性注入あり
protected $_store;
public function __construct(
    ...
    \Magento\Store\Api\Data\StoreInterface $store,
    ...
) {
    ...
    $this->_store = $store;
    ...
}
次にgetLocaleCode()、言語を取得するために使用します。
$currentStore = $this->_store->getLocaleCode();
if($currentStore == 'en_US'){
}
  2)Magento\Framework\Locale\Resolverクラスを使用する
objectManagerを使用
$objectManager = \Magento\Framework\App\ObjectManager::getInstance(); 
$store = $objectManager->get('Magento\Framework\Locale\Resolver'); 
echo $store->getLocale();
工場での方法
protected $_store;
public function __construct(
    ...
    Magento\Framework\Locale\Resolver $store,
    ...
) {
    ...
    $this->_store = $store;
    ...
}
次にgetLocale()、言語を取得するために使用します。
$currentStore = $this->_store->getLocale();
if($currentStore == 'en_US'){
}