/**
  * A helper function that returns a snippet namespace by a specific locale id
  *
  * @param $localeId
  * @return Enlight_Components_Snippet_Namespace
  */
 private function getSnippetNamespace($localeId)
 {
     /** @var \Shopware\Models\Shop\Locale $locale */
     $locale = $this->models->getRepository('Shopware\\Models\\Shop\\Locale')->find($localeId);
     return $this->snippets->setLocale($locale)->getNamespace('frontend/swag_browser_language/main');
 }