1
0
mirror of https://github.com/flarum/core.git synced 2025-08-08 09:26:34 +02:00

[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
This commit is contained in:
Davide Iadeluca
2024-11-20 09:51:17 +01:00
committed by GitHub
parent 79e17b3bde
commit 397642ab5a
7 changed files with 112 additions and 0 deletions

View File

@@ -161,3 +161,23 @@ flarum-extension-manager:
why_not_modal:
title: Why Won't it Update
validation:
attributes:
minimum_stability: minimum stability
repositories: repositories
repositories.*: repositories
repositories.*.type: repository type
repositories.*.url: repository URL
extension_id: extension ID
update_mode: update mode
package: package
version: version
github_oauth: GitHub OAuth
github_oauth.*: GitHub OAuth
gitlab_oauth: GitLab OAuth
gitlab_oauth.*: GitLab OAuth
gitlab_token: GitLab Token
gitlab_token.*: GitLab Token
bearer: HTTP Bearer
bearer.*: HTTP Bearer

View File

@@ -69,3 +69,7 @@ flarum-suspend:
You have been unsuspended. You can head back to the forum by clicking on the following link:
{forum_url}
validation:
attributes:
suspendedUntil: suspended until

View File

@@ -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