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

Missing support for translate-namespace

Open tiltec opened this issue 9 years ago • 1 comments

If the HTML template uses the translate-namespace directive, the tool will not assemble the translation IDs correctly.

Example case:

<div translate-namespace="CONTENT"
      <div>
          <h3 translate translate-default="Hello">.TITLE</h3>
      </div>
<div translate-namespace="SECTION"
      <div>
          <h3 translate translate-default="Article 1">.TITLE</h3>
      </div>

It will report that the translation ID .TITLE is duplicate, with different default texts.

The directive is documented in the angular-translate API guide.

tiltec avatar Nov 04 '16 13:11 tiltec

Thanks for reporting the issue. I didn't knew the translate-namespace directive up to now so it is not supported. Currently I have quite a lot of work to do and therefore are not capable to fix this soon...

How would an ideal output look like from your perspective?

MichaReiser avatar Nov 04 '16 13:11 MichaReiser