jquery-localize icon indicating copy to clipboard operation
jquery-localize copied to clipboard

Using translation in title and alt attributes

Open magglomag opened this issue 9 years ago • 3 comments

Hey again,

is it possible to use translations in title and alt attributes?

Thanks!

magglomag avatar Jul 19 '16 12:07 magglomag

Ok, I found out how to localize the title:

<a href="#" title="test title">Test link</a>

"start": {
    "title": "test title in french"
}

But how do I combine that with the localization of the link text Test link? This doesn’t work:

"start": {
    "Test link in french",
    "title": "test title in french"
}

magglomag avatar Jul 19 '16 12:07 magglomag

Alright, nevermind – I found it out by myself: You need to write text as the key.

"start": {
    "text": "Test link in french",
    "title": "test title in french"
}

magglomag avatar Jul 19 '16 12:07 magglomag

This works for me. Thanks. But, it's breaking the tooltip

loginetsolutions avatar Jan 05 '18 04:01 loginetsolutions