-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
HTML template elements are not localized as expected:
<template>
<span data-i18n="__MSG_example__">Please translate me!</span>
</template>The issue is that they are not found by document.querySelectorAll:
Lines 283 to 286 in f6da4ca
| document.querySelectorAll(`[${I18N_ATTRIBUTE}]`).forEach((currentElem) => { | |
| const contentString = currentElem.dataset[I18N_DATASET]; | |
| replaceI18n(currentElem, contentString); | |
| }); |
This affects my Thunderbird Send add-on, which uses an HTML template element in the popup. See tdulcet/Thunderbird-Send#14.
CC: @DenB10
Metadata
Metadata
Assignees
Labels
No labels