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

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

9 lines
262 B
JavaScript
Raw Normal View History

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(value ? "yes_value" : "no_value", params);
}