Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

image localization with jquery-localize #79

Open
larslue opened this issue Jul 10, 2016 · 0 comments
Open

image localization with jquery-localize #79

larslue opened this issue Jul 10, 2016 · 0 comments

Comments

@larslue
Copy link

larslue commented Jul 10, 2016

Hi

after several hours of work I finally found out how to localize images with this plugin.
Say you want to have a different logo for every page then you have to define it:
html <img src="./path/to/logo.png" data-localize="logo" />

And then define it in your application-en.json.
javascript { "logo": { "src": "./path/to/logo-en.png", "alt": "logo" } }
This way works with images, input field and all sorts of special html tags. Please add this to the docs so other people won't have a hard time finding it out.

Thanks!

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

No branches or pull requests

1 participant