Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Using translation in title and alt attributes #82

Open
magglomag opened this issue Jul 19, 2016 · 3 comments
Open

Using translation in title and alt attributes #82

magglomag opened this issue Jul 19, 2016 · 3 comments

Comments

@magglomag
Copy link

Hey again,

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

Thanks!

@magglomag
Copy link
Author

magglomag commented Jul 19, 2016

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
Copy link
Author

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"
}

@loginetsolutions
Copy link

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants