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

7 lines
232 B
Plaintext
Raw Normal View History

2018-06-15 23:03:24 +08:00
import { registerUnbound } from "discourse-common/lib/helpers";
2016-08-26 01:14:56 +08:00
2018-06-15 23:03:24 +08:00
registerUnbound("i18n", (key, params) => I18n.t(key, params));
registerUnbound("i18n-yes-no", (value, params) =>
I18n.t(value ? "yes_value" : "no_value", params)
);