This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/discourse/helpers/i18n.js.es6

10 lines
272 B
JavaScript

import registerUnbound from 'discourse/helpers/register-unbound';
registerUnbound('i18n', function(key, params) {
return I18n.t(key, params);
});
registerUnbound('replace-emoji', function(text) {
return new Handlebars.SafeString(Discourse.Emoji.unescape(text));
});