Skip to content

Instantly share code, notes, and snippets.

@beitomartinez
Last active June 22, 2022 16:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save beitomartinez/bdf55553deefcc1d786b8421cab322a6 to your computer and use it in GitHub Desktop.
Save beitomartinez/bdf55553deefcc1d786b8421cab322a6 to your computer and use it in GitHub Desktop.
Laravel 9 locale/lang ES (español)
<?php
return [
/*
|--------------------------------------------------------------------------
| Authentication Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used during authentication for various
| messages that we need to display to the user. You are free to modify
| these language lines according to your application's requirements.
|
*/
'failed' => 'Estas credenciales no coinciden nuestros registros.',
'password' => 'La contraseña es incorrecta.',
'throttle' => 'Demasiados intentos. Por favor, intenta en :seconds segundos.',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Pagination Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are used by the paginator library to build
| the simple pagination links. You are free to change them to anything
| you want to customize your views to better match your application.
|
*/
'previous' => '&laquo; Anterior',
'next' => 'Siguiente &raquo;',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Password Reset Language Lines
|--------------------------------------------------------------------------
|
| The following language lines are the default lines which match reasons
| that are given by the password broker for a password update attempt
| has failed, such as for an invalid token or invalid new password.
|
*/
'reset' => 'Tu contraseña ha sido restablecida.',
'sent' => '¡Te hemos enviado un enlace de restablecimiento!',
'throttled' => 'Por favor, espera un momento antes de volver a intentar.',
'token' => 'El token es inválido.',
'user' => 'Usuario no encontrado.',
];
<?php
return [
/*
|--------------------------------------------------------------------------
| Validation Language Lines
|--------------------------------------------------------------------------
|
| The following language lines contain the default error messages used by
| the validator class. Some of these rules have multiple versions such
| as the size rules. Feel free to tweak each of these messages here.
|
*/
'accepted' => 'El campo :attribute debe ser aceptado.',
'accepted_if' => 'El campo :attribute debe ser aceptado cuando :other es :value.',
'active_url' => 'El campo :attribute no es una URL válida.',
'after' => 'El campo :attribute debe ser una fecha después de :date.',
'after_or_equal' => 'El campo :attribute debe ser una fecha después o igual :date.',
'alpha' => 'El campo :attribute solo debe contener letras.',
'alpha_dash' => 'El campo :attribute solo debe contener letras, números, guiones y guiones bajos.',
'alpha_num' => 'El campo :attribute solo debe contener letras y números.',
'array' => 'El campo :attribute debe ser un arreglo.',
'before' => 'El campo :attribute debe ser una fecha antes de :date.',
'before_or_equal' => 'El campo :attribute debe ser una fecha antes o igual a :date.',
'between' => [
'array' => 'El campo :attribute debe tener entre :min y :max elementos.',
'file' => 'El campo :attribute debe pesar entre :min y :max kilobytes.',
'numeric' => 'El campo :attribute debe ser entre :min y :max.',
'string' => 'El campo :attribute debe tener entre :min y :max caracteres.',
],
'boolean' => 'El campo :attribute debe ser verdadero o falso.',
'confirmed' => 'El campo de confirmación para :attribute no coincide.',
'current_password' => 'La contraseña es incorrecta.',
'date' => 'El campo :attribute no es una fecha válida.',
'date_equals' => 'El campo :attribute debe ser una fecha igual a :date.',
'date_format' => 'El campo :attribute no coincide con el formato :format.',
'declined' => 'El campo :attribute debe ser rechazado.',
'declined_if' => 'El campo :attribute debe ser rechazado cuando :other es :value.',
'different' => 'El campo :attribute y el campo :other deben ser diferentes.',
'digits' => 'El campo :attribute debe tener :digits dígitos.',
'digits_between' => 'El campo :attribute debe tener entre :min y :max dígitos.',
'dimensions' => 'El campo :attribute tiene dimensiones inválidas.',
'distinct' => 'El campo :attribute tiene un valor duplicado.',
'email' => 'El campo :attribute debe ser una dirección válida de correo electrónico.',
'ends_with' => 'El campo :attribute debe terminar con alguno de los siguientes: :values.',
'enum' => 'La opción seleccionada para :attribute es inválida.',
'exists' => 'La opción seleccionada para :attribute es inválida.',
'file' => 'El campo :attribute debe ser un archivo.',
'filled' => 'El campo :attribute debe tener un valor.',
'gt' => [
'array' => 'El campo :attribute debe tener más de :value elementos.',
'file' => 'El campo :attribute debe pesar más de :value kilobytes.',
'numeric' => 'El campo :attribute debe ser mayor a :value.',
'string' => 'El campo :attribute debe tener más de :value caracteres.',
],
'gte' => [
'array' => 'El campo :attribute debe tener :value o más elementos.',
'file' => 'El campo :attribute debe pesar :value o más kilobytes.',
'numeric' => 'El campo :attribute debe ser igual o mayor a :value.',
'string' => 'El campo :attribute debe tener :value o más caracteres.',
],
'image' => 'El campo :attribute debe ser una imagen.',
'in' => 'La opción seleccionada para :attribute es inválida.',
'in_array' => 'El campo :attribute no existe en :other.',
'integer' => 'El campo :attribute debe ser un entero.',
'ip' => 'El campo :attribute debe ser una dirección IP válida.',
'ipv4' => 'El campo :attribute debe ser una dirección IPv4 válida.',
'ipv6' => 'El campo :attribute debe ser una dirección IPv6 válida.',
'json' => 'El campo :attribute debe ser una cadena JSON válida.',
'lt' => [
'array' => 'El campo :attribute debe contener menos de :value elementos.',
'file' => 'El archivo :attribute debe pesar menos de :value kilobytes.',
'numeric' => 'El campo :attribute debe ser menor a :value.',
'string' => 'El campo :attribute debe contener menos de :value caracteres.',
],
'lte' => [
'array' => 'El campo :attribute debe contener :value o menos elementos.',
'file' => 'El archivo :attribute debe pesar :value o menos kilobytes.',
'numeric' => 'El campo :attribute debe ser menor o igual a :value.',
'string' => 'El campo :attribute debe contener :value o menos caracteres.',
],
'mac_address' => 'El campo :attribute debe ser una dirección MAC válida.',
'max' => [
'array' => 'El campo :attribute no debe contener más de :max elementos.',
'file' => 'El archivo :attribute no debe pesar más de :max kilobytes.',
'numeric' => 'El campo :attribute no debe ser mayor a :max.',
'string' => 'El campo :attribute no debe contener más de :max caracteres.',
],
'mimes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
'mimetypes' => 'El campo :attribute debe ser un archivo de tipo: :values.',
'min' => [
'array' => 'El campo :attribute debe contener al menos :min elementos.',
'file' => 'El archivo :attribute debe pesar al menos :min kilobytes.',
'numeric' => 'El campo :attribute debe ser al menos :min.',
'string' => 'El campo :attribute debe contener al menos :min caracteres.',
],
'multiple_of' => 'El campo :attribute debe ser múltiplo de :value.',
'not_in' => 'La opción seleccionada para :attribute es inválida.',
'not_regex' => 'El formato del campo :attribute es inválido.',
'numeric' => 'El campo :attribute debe ser un número.',
'password' => [
'letters' => 'El campo :attribute debe contener al menos una letra.',
'mixed' => 'El campo :attribute debe contener al menos una letra mayúscula y una minúscula.',
'numbers' => 'El campo :attribute debe contener al menos un número.',
'symbols' => 'El campo :attribute debe contener al menos un símbolo.',
'uncompromised' => 'El campo :attribute aparece en una fuga de datos. Por favor, ingresa un valor diferente',
],
'present' => 'El campo :attribute debe estar presente.',
'prohibited' => 'El campo :attribute es prohibido.',
'prohibited_if' => 'El campo :attribute es prohibido cuando :other es :value.',
'prohibited_unless' => 'El campo :attribute es prohibido a menos que :other esté en :values.',
'prohibits' => 'El campo :attribute prohibe :other de estar presente.',
'regex' => 'El formato del campo :attribute es inválido.',
'required' => 'El campo :attribute es requerido.',
'required_array_keys' => 'El campo :attribute debe tener valores para: :values.',
'required_if' => 'El campo :attribute es requerido cuando :other es :value.',
'required_unless' => 'El campo :attribute es requerido a menos que :other esté en :values.',
'required_with' => 'El campo :attribute es requerido cuando :values está presente.',
'required_with_all' => 'El campo :attribute es requerido cuando :values están presentes.',
'required_without' => 'El campo :attribute es requerido cuando :values no está presente.',
'required_without_all' => 'El campo :attribute es requerido cuando ninguno de los valores :values están presentes.',
'same' => 'El campo :attribute y :other deben coincidir.',
'size' => [
'array' => 'El campo :attribute debe tener :size elementos.',
'file' => 'El campo :attribute debe pesar :size kilobytes.',
'numeric' => 'El campo :attribute debe ser :size.',
'string' => 'El campo :attribute debe tener :size caracteres.',
],
'starts_with' => 'El campo :attribute debe comenzar con alguno de los siguientes: :values.',
'doesnt_start_with' => 'El campo :attribute no puede comenzar con alguno de los siguientes: :values.',
'string' => 'El campo :attribute debe ser una cadena de texto.',
'timezone' => 'El campo :attribute debe ser una zona horaria válida.',
'unique' => 'El campo :attribute ya ha sido tomado.',
'uploaded' => 'El campo :attribute no puso ser cargado.',
'url' => 'El campo :attribute debe ser una URL válida.',
'uuid' => 'El campo :attribute debe ser un UUID válido.',
/*
|--------------------------------------------------------------------------
| Custom Validation Language Lines
|--------------------------------------------------------------------------
|
| Here you may specify custom validation messages for attributes using the
| convention "attribute.rule" to name the lines. This makes it quick to
| specify a specific custom language line for a given attribute rule.
|
*/
'custom' => [
'attribute-name' => [
'rule-name' => 'custom-message',
],
],
/*
|--------------------------------------------------------------------------
| Custom Validation Attributes
|--------------------------------------------------------------------------
|
| The following language lines are used to swap our attribute placeholder
| with something more reader friendly such as "E-Mail Address" instead
| of "email". This simply helps us make our message more expressive.
|
*/
'attributes' => [
'dob' => 'fecha de nacimiento',
'email' => 'correo electrónico',
'first_name' => 'nombre',
'last_name' => 'apellido',
'name' => 'nombre',
'password' => 'contraseña',
'username' => 'usuario',
],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment