You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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!
The text was updated successfully, but these errors were encountered: