creocoder\translateable\TranslateableBehavior::translate PHP Method

translate() public method

Returns the translation model for the specified language.
public translate ( string | null $language = null ) : ActiveRecord
$language string | null
return yii\db\ActiveRecord
    public function translate($language = null)
    {
        return $this->getTranslation($language);
    }