From 1baea940d1504da46805e64575ae336e5da6b43c Mon Sep 17 00:00:00 2001 From: Davide Iadeluca <146922689+DavideIadeluca@users.noreply.github.com> Date: Wed, 20 Nov 2024 09:51:17 +0100 Subject: [PATCH] [1.x] Implement Support for Translatable Validation Attribute Errors (#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 --- locale/en.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/locale/en.yml b/locale/en.yml index bb44b2a7..3f93b6ba 100644 --- a/locale/en.yml +++ b/locale/en.yml @@ -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