Spiegel von
https://github.com/paviliondev/discourse-custom-wizard.git
synchronisiert 2024-11-23 09:50:28 +01:00
16 Zeilen
473 B
Text
16 Zeilen
473 B
Text
|
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`);
|
||
|
}
|
||
|
})
|