public function addTranslated(string $locale)
    {
        if ($this->isDefaultLocale($locale)) {
            $this->translated = [$locale];
        } else {
            $translated = $this->getTranslated();
            $translated[] = $locale;
            $this->translated = array_unique($translated);
        }
    }
public function addTranslated(string $locale)
    {
        if ($this->isDefaultLocale($locale)) {
            $this->translated = [$locale];
        } else {
            $translated = $this->getTranslated();
            $translated[] = $locale;
            $this->translated = array_unique($translated);
        }
    }
public function addTranslated ( string $ locale ) { if ( $ this -> isDefaultLocale ( $ locale ) ) { $ this -> translated = [ $ locale ] ; } else { $ translated = $ this -> getTranslated ( ) ; $ translated [ ] = $ locale ; $ this -> translated = array_unique ( $ translated ) ; } }
Set translated locale.

@param string $locale
@return void
Set translated locale .