since I couldn't find anything in the porting guide or in this link https://developer.mozilla.org/en-US/Add ... nalization .. I also looked through the bugzilla and the forums and was quite astonished that I seem to either have quite a unique problem or that I am majorly dumb in general
The thing is, my own add-on was deactivated due to the recent change and I want to bring it back to life. Thus, I started out, porting each piece one by one (logic comes last). I also have a sidebar specially to configure the add on.
Now, in the old extension API you could use
Code: Select all
<label for="setting_criteria-txt" data-l10n-id="settings_criteria_label_id"></label>
I tried with __MSG_myLabel__ without success. I thought of using "body onLoad="javascript: localize()" which then grants me a CSP violation (according to the debugger)... a simple "alert" won't trigger either. So, I guess that's out of option (though, I would have considered this a workaround if at all)
Which is now the way to get the HTML localized? Or is there even a simpler way to configure your add-on? At least back when I initially made it this was the easiest one (or rather, the one which was documented the best (with the "storage" attribute)).
Any hints to resolve this problem are appreciated!
Thank you in advance!