src/ngrest/base/NgRestModel.php
public function i18nAttributeValue($attributeName)
    {
        $value = $this->{$attributeName};
        if ($this->isI18n($attributeName) && Json::isJson($value)) {
            return I18n::decodeFindActive($value);
        }

        return $this->{$attributeName};
    }
public function i18nAttributeValue($attributeName)
    {
        $value = $this->{$attributeName};
        if ($this->isI18n($attributeName) && Json::isJson($value)) {
            return I18n::decodeFindActive($value);
        }

        return $this->{$attributeName};
    }
public function i18nAttributeValue ( $ attributeName ) { $ value = $ this -> { $ attributeName } ; if ( $ this -> isI18n ( $ attributeName ) && Json :: isJson ( $ value ) ) { return I18n :: decodeFindActive ( $ value ) ; } return $ this -> { $ attributeName } ; }
Checks whether given attribute is in the list of i18n fields, if so
the field value will be decoded and the value for the current active
language is returned.

If the attribute is not in the list of attributes values, the value of the attribute is returned. So
its also safe to use this function when dealing with none i18n fields.

@param string $attributeName The attribute of the ActiveRecord to check and return its decoded i18n value.
@return string A json decoded value from an i18n field.
@since 2.0.0
Checks whether given attribute is in the list of i18n fields if so the field value will be decoded and the value for the current active language is returned .