2
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2025-09-07 12:02:53 +08:00
discourse/app/assets/javascripts/discourse-common/helpers/i18n.js.es6

5 lines
229 B
Text
Raw Normal View History

import { registerUnbound } from 'discourse-common/lib/helpers';
2016-08-25 13:14:56 -04:00
registerUnbound('i18n', (key, params) => I18n.t(key, params));
2016-12-28 11:45:41 +01:00
registerUnbound('i18n-yes-no', (value, params) => I18n.t(value ? 'yes_value' : 'no_value', params));