Hi
It's possible translate form fields labels and placeholders? I'm reading the doc but I don't find the solution.
Thanks
Hi
It's possible translate form fields labels and placeholders? I'm reading the doc but I don't find the solution.
Thanks
I found the solution, I create a languages.yaml in my theme and declare the languages:
es:
THEME_GDA:
FORMNAME: Nombre
en:
THEME_GDA:
FORMNAME: Name
And in the form.md I call the translations:
name: name
label: THEME_GDA.FORMNAME
placeholder: 'Enter your name'
autofocus: 'on'
autocomplete: 'on'
type: text
validate:
required: true
Thanks
Log in to reply.
| Topic | Participants | Replies | Views | Activity |
|---|---|---|---|---|
| 4 | 181 | 2 days ago | ||
| 2 | 122 | 3 days ago | ||
| 1 | 100 | 1 week ago | ||
| 1 | 124 | 1 week ago | ||
| 0 | 248 | 3 weeks ago |