angular-translate-once
angular-translate-once copied to clipboard
Support for `translate-namespace`
angular-translate has a translate-namespace
directive.
Would it be possible to support this directive with translate-once
?
Example:
<div translate-namespace="CONTENT">
<div>
<h3 translate-once=".HEADERS.TITLE"></h3>
<h3 translate-once=".HEADERS.WELCOME"></h3>
</div>
<div translate-namespace=".HEADERS">
<h3 translate-once=".TITLE">.TITLE</h3>
<h3 translate-once=".WELCOM"></h3>
</div>
</div>
I would imagine so!
If we look at how the translate
directive accesses translateNamespace
, we can see that it's relatively simple.
It would require isolating the scope
on translate-once
directives, I'm not sure if this might create a breaking change for some people
Any update on this?