0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-22 17:30:29 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-message.js.es6
2020-05-28 13:06:06 +10:00

17 Zeilen
Kein EOL
498 B
JavaScript

import { default as discourseComputed } from 'discourse-common/utils/decorators';
import Component from "@ember/component";
import I18n from "I18n";
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`);
}
})