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

Using localize with icons #102

Open
lollilol opened this issue May 1, 2020 · 0 comments
Open

Using localize with icons #102

lollilol opened this issue May 1, 2020 · 0 comments

Comments

@lollilol
Copy link

lollilol commented May 1, 2020

How can i use jquery-localize with my icons? They are stored inside the 2 html tags. Means

<a href="/gallery" data-localize="navbar.gallery">Gallery <i class="material-icons right>image</i></a>

so it gets replaced with just "Gallery" and not "<i class ...", so the icon is missing..
Just putting the "" within the locale json file also doesnt work. (The translation stops working completely when i do this)

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