/**
  * Loads localization plugins from SBP for the given localization
  *
  * @param string $localization Localization for which to retrieve the plugins
  * @param LocaleStruct $locale Locale in which to translate the information
  * @param string $shopwareVersion Current Shopware version
  * @return array List of plugins
  */
 public function getLocalizationPlugins($localization, $locale, $shopwareVersion)
 {
     $localeName = $locale ? $locale->getName() : null;
     $data = $this->storeClient->doGetRequest('/firstrunwizard/languages/' . $localization, ['locale' => $localeName, 'shopwareVersion' => $shopwareVersion]);
     $plugins = $this->hydrator->hydrateStorePlugins($data);
     return $this->getAdditionallyLocalData($plugins);
 }
 /**
  * @param UpdateListingRequest $context
  * @return PluginStruct[]
  * @throws \Exception
  */
 public function getUpdates(UpdateListingRequest $context)
 {
     $result = $this->storeClient->doGetRequest('/pluginStore/updateablePlugins', ['shopwareVersion' => $context->getShopwareVersion(), 'domain' => $context->getDomain(), 'locale' => $context->getLocale(), 'plugins' => $context->getPlugins()]);
     $plugins = $this->hydrator->hydrateStorePlugins($result['data']);
     return $plugins;
 }