Closed bertoost closed 2 years ago
Also applied lcfirst()
so keys like Email
become contact_form.email
instead, or contact_form.lastName
etc.
Added this for the next release.
It only applies to custom message keys rather than all keys (everything else can use the contact-form
category already), and there’s no contact_form.
prefix for the translation keys.
Keys are prefixed with
contact_form.
, so you can define something likecontact_form.name
for the label in thesite.php
translations file. Also a check, if the translation doesn't exist, it returns the generated-key, then it falls back to the original key (as it was before).