In bug 1347798 we're adding a small per-document JS code that enables DOM localization using the new API.
At the moment, we only translate the document on window.onready, but it may be better to do this before layout.