discourse/app/assets/javascripts/discourse-common/addon/helpers/i18n.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
212 B
JavaScript
Raw Normal View History

import { registerRawHelper } from "discourse-common/lib/helpers";
import I18n from "discourse-i18n";
2016-08-26 01:14:56 +08:00
registerRawHelper("i18n", i18n);
export default function i18n(key, params) {
return I18n.t(key, params);
}