src/Viserio/Component/Translation/TranslationManager.php
public function setLocale(string $locale): self
    {
        self::assertValidLocale($locale);

        $this->locale = $locale;

        return $this;
    }
public function setLocale(string $locale): self
    {
        self::assertValidLocale($locale);

        $this->locale = $locale;

        return $this;
    }
Sets the string dictating the default language to translate into. (e.g. 'en').

@param string $locale

@return $this