mirror of
https://github.com/discourse/discourse.git
synced 2024-12-23 15:13:42 +08:00
9 lines
260 B
JavaScript
9 lines
260 B
JavaScript
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
||
|
import I18n from "discourse-i18n";
|
||
|
|
||
|
registerRawHelper("i18n-yes-no", i18nYesNo);
|
||
|
|
||
|
export default function i18nYesNo(value, params) {
|
||
|
return I18n.t(value ? "yes_value" : "no_value", params);
|
||
|
}
|