Make public and apply translateFragment (https://github.com/mozilla/pdf.js/blob/master/extensions/firefox/tools/l10n.js and https://github.com/mozilla/pdf.js/blob/master/external/webL10n/l10n.js)