angular-translate-once icon indicating copy to clipboard operation
angular-translate-once copied to clipboard

Support for `translate-namespace`

Open schmkr opened this issue 8 years ago • 2 comments

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>

schmkr avatar Sep 07 '16 09:09 schmkr

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

atticoos avatar Sep 07 '16 15:09 atticoos

Any update on this?

DoubleDot avatar Jan 24 '17 14:01 DoubleDot