Skip to content

Commit

Permalink
[1.x] Implement Support for Translatable Validation Attribute Errors …
Browse files Browse the repository at this point in the history
…(#4070)

* chore: add validation translations

* feat: implement ability to translate validation attributes

* chore: change translation key

* style: formatting

* perf: cache `getAttributeNames`

* perf: cache `getAttributeNames`

* chore

* style: formatting
  • Loading branch information
DavideIadeluca authored Nov 20, 2024
1 parent 9373fb6 commit 1baea94
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions locale/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,13 @@ flarum-tags:
choose_tags_placeholder: "{count, plural, one {Choose 1 more tag} other {Choose # more tags}}"
name: Name
tags: Tags

validation:
attributes:
name: name
slug: slug
is_hidden: hidden
description: description
color: color
tag_count_primary: => validation.attributes.tag_count_primary
tag_count_secondary: => validation.attributes.tag_count_secondary

0 comments on commit 1baea94

Please sign in to comment.