this should move to l10n.js

maybe rather use window.frames, should be faster