Skip to content
This repository has been archived by the owner on Oct 26, 2023. It is now read-only.

InnerHTML might have been modified by angular before the translation link is done #6

Open
esquevin opened this issue Apr 19, 2013 · 2 comments

Comments

@esquevin
Copy link

http://jsfiddle.net/cjesK/59/

Look at the console, you'll see Missing localisation for "Hello <strong class="ng-binding">{{user}}</strong>!" because angular added a class="ng-binding" to the element

A fix might be to save the original innerHTML within the compile function and reuse it in the link function where it might already have been modified.

@0x-r4bbit
Copy link

This is a common problem when trying to set up translation upon dependent translation ids. You might checkout ngTranslate. It uses locale independent translation ids to translate your contents.

@StephanHoyer
Copy link
Owner

I will try to find a sollution for this in the next week.

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

No branches or pull requests

3 participants