Skip to content

image localization with jquery-localize #79

Open
@larslue

Description

@larslue

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions