Borrow frontend i18n from Discourse. Fix Qunit tests.