2016-08-31 11:30:51 -04:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
2023-10-18 06:07:09 -04:00
|
|
|
import I18n from "discourse-i18n";
|
2016-08-25 13:14:56 -04:00
|
|
|
|
2023-10-02 06:36:06 -04:00
|
|
|
export default function i18n(key, params) {
|
|
|
|
return I18n.t(key, params);
|
|
|
|
}
|
|
|
|
registerUnbound("i18n", i18n);
|
|
|
|
|
2016-12-28 05:45:41 -05:00
|
|
|
registerUnbound("i18n-yes-no", (value, params) =>
|
|
|
|
I18n.t(value ? "yes_value" : "no_value", params)
|
|
|
|
);
|