8 lines
286 B
Plaintext
Raw Normal View History

2018-06-15 17:03:24 +02:00
import { registerUnbound } from "discourse-common/lib/helpers";
import { htmlSafe } from "@ember/template";
2016-08-25 13:14:56 -04:00
registerUnbound("i18n", (key, params) => htmlSafe(I18n.t(key, params)));
2018-06-15 17:03:24 +02:00
registerUnbound("i18n-yes-no", (value, params) =>
I18n.t(value ? "yes_value" : "no_value", params)
);