public static function getRules()
    {
        $rules = static::rules();

        if (RevyAdmin::isTranslationMode()) {
            $object = new static();

            foreach ($rules as $field => $rule) {
                if ($object->isTranslatableField($field)) {
                    unset($rules[$field]);
                    foreach (Language::getLocales() as $locale) {
                        $rules[RevyAdmin::getTranslationFieldName($field, $locale)] = $rule;
                    }
                }
            }
        }
      
        return $rules;
    }
public static function getRules()
    {
        $rules = static::rules();

        if (RevyAdmin::isTranslationMode()) {
            $object = new static();

            foreach ($rules as $field => $rule) {
                if ($object->isTranslatableField($field)) {
                    unset($rules[$field]);
                    foreach (Language::getLocales() as $locale) {
                        $rules[RevyAdmin::getTranslationFieldName($field, $locale)] = $rule;
                    }
                }
            }
        }
      
        return $rules;
    }
public static function getRules ( ) { $ rules = static :: rules ( ) ; if ( RevyAdmin :: isTranslationMode ( ) ) { $ object = new static ( ) ; foreach ( $ rules as $ field => $ rule ) { if ( $ object -> isTranslatableField ( $ field ) ) { unset ( $ rules [ $ field ] ) ; foreach ( Language :: getLocales ( ) as $ locale ) { $ rules [ RevyAdmin :: getTranslationFieldName ( $ field , $ locale ) ] = $ rule ; } } } } return $ rules ; }
Validation default rules

Prepare rules
Validation default rules