switch from using custom context to document.l10n