original_string: protected function buildLocalizedRules($attributes)
      {
          $rules = [];
          $locales = config('app.locales');
  
          foreach ($locales as $locale => $name) {
              foreach ($attributes as $attribute => $rule) {
                  $rules[$attribute.'_'.$locale] = $rule;
              }
          }
  
          return $rules;
      }
code: protected function buildLocalizedRules($attributes)
      {
          $rules = [];
          $locales = config('app.locales');
  
          foreach ($locales as $locale => $name) {
              foreach ($attributes as $attribute => $rule) {
                  $rules[$attribute.'_'.$locale] = $rule;
              }
          }
  
          return $rules;
      }
code_tokens: protected function buildLocalizedRules ( $ attributes ) { $ rules = [ ] ; $ locales = config ( 'app.locales' ) ; foreach ( $ locales as $ locale => $ name ) { foreach ( $ attributes as $ attribute => $ rule ) { $ rules [ $ attribute . '_' . $ locale ] = $ rule ; } } return $ rules ; }
docstring: builds localized suffixed rules for validation.
  
  @param $attributes
  
  @return array
docstring_tokens: builds localized suffixed rules for validation .