public function getUrlFromRouteName(
        $locale, $defaultLocale, $transKey, $attributes = [], $defaultHidden = false, $showHiddenLocale = false
    ) {
        if ( ! is_string($locale))
            $locale = $defaultLocale;

        $url = '';

        if ( ! ($locale === $defaultLocale && $defaultHidden) || $showHiddenLocale)
            $url = '/'.$locale;

        if ($this->hasTranslation($transKey, $locale))
            $url = Url::substituteAttributes($attributes, $url.'/'.$this->trans($transKey, $locale));

        return $url;
    }