Open botsarefuture opened 1 week ago
@samimaat is this the proper way to handle aria-label
, or should we wrap it in {{ _('Etsi käyttäjiä') }}
first?
Basically:
If I understood correctly that you simply want to translate the input field to English, then you should translate the <label>
element's content and the placeholder
attribute's content.
aria-label
isn't needed when it's done this way. In its current implementation it mixes Finnish and English, which would be confusing either way.
Edit: Oh, sorry I didn't actually read what you asked. aria-label
is text as is everything else, so it should be in the native language.
It is redundant here though, because the <label>
already tells the user what the input field is. So aria-label
attribute can be removed.
Okay! Thank you!
I thought that as well, but just wanted to make sure.
Now we use transifex for making the translations!