1
0
Fork 0
discourse-custom-wizard-unl.../assets/javascripts/discourse/components/wizard-message.js.es6

16 Zeilen
473 B
Text

2020-04-20 13:40:32 +02:00
import { default as discourseComputed } from 'discourse-common/utils/decorators';
import Component from "@ember/component";
export default Component.extend({
classNames: 'wizard-message',
@discourseComputed('key', 'component')
message(key, component) {
return I18n.t(`admin.wizard.message.${component}.${key}`);
},
@discourseComputed('component')
documentation(component) {
return I18n.t(`admin.wizard.message.${component}.documentation`);
}
})