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

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

8 lines
286 B
Plaintext
Raw Normal View History

import { registerUnbound } from "discourse-common/lib/helpers";
import { htmlSafe } from "@ember/template";
2016-08-26 01:14:56 +08:00
registerUnbound("i18n", (key, params) => htmlSafe(I18n.t(key, params)));
2016-12-28 18:45:41 +08:00
registerUnbound("i18n-yes-no", (value, params) =>
I18n.t(value ? "yes_value" : "no_value", params)
);