Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

French translation update + ErrorMessage params accessor #28

Merged
merged 2 commits into from
May 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/ErrorMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ public function key(): string
return $this->key;
}

public function params(): array
{
return $this->params;
}

public function addParam(string $key, mixed $value): self
{
$this->params[$key] = $value;
Expand Down
2 changes: 1 addition & 1 deletion src/Resources/i18n/fr.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
'rule.digits_between' => 'Le champ :attribute doit contenir entre :min et :max chiffres.',
'rule.email' => 'Le champ :attribute doit être une adresse email valide.',
'rule.ends_with' => 'Le champ :attribute doit se terminer par une des valeurs suivantes : :compare_with.',
'rule.exists' => 'Le champ :attribute sélectionné est invalide.',
'rule.exists' => 'Le champ :attribute sélectionné doit correspondre à un enregistrement existant.',
'rule.extension' => 'Le champ :attribute doit être un fichier de type :allowed_extensions.',
'rule.float' => 'Le champ :attribute doit être un nombre à virgule.',
'rule.in' => 'Le champ :attribute doit être une des valeurs suivantes :allowed_values.',
Expand Down