ng-translate icon indicating copy to clipboard operation
ng-translate copied to clipboard

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

Open esquevin opened this issue 11 years ago • 2 comments

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.

esquevin avatar Apr 19 '13 08:04 esquevin

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.

0x-r4bbit avatar Apr 23 '13 19:04 0x-r4bbit

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

StephanHoyer avatar Apr 25 '13 07:04 StephanHoyer