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

Support for translate-namespace #18

Open
schmkr opened this issue Sep 7, 2016 · 2 comments
Open

Support for translate-namespace #18

schmkr opened this issue Sep 7, 2016 · 2 comments

Comments

@schmkr
Copy link

schmkr commented Sep 7, 2016

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>
@atticoos
Copy link
Owner

atticoos commented Sep 7, 2016

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

@DoubleDot
Copy link

Any update on this?

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

No branches or pull requests

3 participants