codelyzer icon indicating copy to clipboard operation
codelyzer copied to clipboard

i18n in html comments returns a nested translatable error

Open fireworkz opened this issue 7 years ago • 1 comments

with template markup as:

<div *ngIf="tData" class="theme-detail__masthead">
<!--  i18n    <div>
        ...
    </div>
 -->

    <div class="headerblock">
        <h3 class="header header--panel">{{tData.sectionText}}</h3>
        <p class="strapline" i18n="theme detail intro - header">foo bar</p>
    </div>

</div>

xi18n triggers the following:

Could not mark an element as translatable inside a translatable section

<!-- i18n on line 1 is the culprit, however the error is flagged on line <p class="strapline" i18n="theme detail intro - header">foo bar</p>

changing the first line to <!-- needs i18n <div> prevents the error from being flagged

fireworkz avatar Dec 05 '18 18:12 fireworkz

any progress on it?

fetis avatar Mar 19 '19 14:03 fetis