Extract helper i18n-yes-no.

This commit is contained in:
Claas Augner
2016-12-28 11:45:41 +01:00
parent 8760f13c77
commit e17bd6174c
2 changed files with 7 additions and 42 deletions

View File

@ -1,3 +1,4 @@
import { registerUnbound } from 'discourse-common/lib/helpers';
registerUnbound('i18n', (key, params) => I18n.t(key, params));
registerUnbound('i18n-yes-no', (value, params) => I18n.t(value ? 'yes_value' : 'no_value', params));