public function addTranslation($locale, $url)
    {
        $this->validateUrl($url);

        $this->translations[] = [
            'hreflang' => $locale,
            'href'     => $url
        ];

        return $this;
    }
public function addTranslation($locale, $url)
    {
        $this->validateUrl($url);

        $this->translations[] = [
            'hreflang' => $locale,
            'href'     => $url
        ];

        return $this;
    }
public function addTranslation ( $ locale , $ url ) { $ this -> validateUrl ( $ url ) ; $ this -> translations [ ] = [ 'hreflang' => $ locale , 'href' => $ url ] ; return $ this ; }
It adds a translation

addTranslation('hr', 'http://domain.com/hr/contact');

@param $locale
@param $url
It adds a translation