Total Complexity | 1 |
Total Lines | 14 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | import {ILanguageSetup} from '../../../Language/ChangeLanguageSetup'; |
||
5 | |||
6 | export default class Presenter { |
||
7 | languageSetupObserver: IObserver<ILanguageSetup>; |
||
8 | |||
9 | constructor(languageSetupObserver: IObserver<ILanguageSetup>) { |
||
10 | 3 | this.languageSetupObserver = languageSetupObserver; |
|
11 | } |
||
12 | |||
13 | present(): Model { |
||
14 | 1 | const model: Model = new Model(); |
|
15 | 1 | const translator: Translator = this.languageSetupObserver.value.translator; |
|
16 | 1 | model.title = translator.translate('Application.TopBar.Title'); |
|
17 | |||
18 | 1 | return model; |
|
19 | } |
||
20 | } |