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:
|
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