adopted-ember-addons / adopted-ember-addons/ember-changeset-validations

Feature Request: Public API for getDescriptionFor

Aperta
#136 2 commenti 3 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
JavaScript
Stelle
215
Fork
98
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

In my app, the propertyName for the input does not always map to the displayed label; this would be even more common in localised products.

For example:

```
{{spanishProperty}}

{{#if (get changeset.error property)}}


    {{#each (get (get changeset.error property) "validation") as |message|}}
  • {{message}}

  • {{/each}}


{{/if}}
```

While it is possible to change the messages hash per language, the hardcoded `{description}` just takes the propertyName and normalises it.

Would it be possible to allow the `app/utils/messages.js` file to be overridden, in order to allow more complex names for the `{description}` placeholder?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.