0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-10 04:12:53 +01:00
discourse-custom-wizard/assets/javascripts/discourse/components/wizard-message.js.es6

17 Zeilen
498 B
Text

2020-04-20 13:40:32 +02:00
import { default as discourseComputed } from 'discourse-common/utils/decorators';
import Component from "@ember/component";
2020-05-28 05:06:06 +02:00
import I18n from "I18n";
2020-04-20 13:40:32 +02:00
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`);
}
})