coderifous / jquery-localize

a jQuery plugin that makes it easy to internationalize your web site.
465 stars 142 forks source link

image localization with jquery-localize #79

Open larslue opened 8 years ago

larslue commented 8 years ago

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

`

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!