[ADF-3088] move sorting picker to a separate module (#3396)

* move sorting picker to a separate module

* update translation mock
This commit is contained in:
Denys Vuika
2018-05-25 09:58:49 +01:00
committed by GitHub
parent ed283c7386
commit 1064521fe9
9 changed files with 87 additions and 13 deletions

View File

@@ -17,18 +17,20 @@
import { EventEmitter } from '@angular/core';
import { Observable } from 'rxjs/Observable';
import { TranslationService } from '../services/translation.service';
export interface LangChangeEvent {
lang: string;
translations: any;
}
export class TranslationMock {
export class TranslationMock implements TranslationService {
defaultLang: string = 'en';
userLang: string;
customLoader: any;
translate = {
translate: any = {
onLangChange: new EventEmitter<LangChangeEvent>()
};