Commit 63466848 authored by Alish's avatar Alish
Browse files

fix: remove hard coded language settings #1010

parent 2af7f126
Loading
Loading
Loading
Loading
+1 −4
Original line number Diff line number Diff line
@@ -65,10 +65,7 @@ export class CategoriesTableComponent implements OnInit, OnDestroy {
		private readonly _modalService: NgbModal,
		private readonly _notifyService: NotifyService,
		private readonly modalService: NgbModal
	) {
		this._translateService.setDefaultLang('en-US');
		this._translateService.use('en-US');
	}
	) {}

	get hasSelectedCategories(): boolean {
		return this._selectedCategories.length > 0;
+1 −4
Original line number Diff line number Diff line
@@ -28,10 +28,7 @@ export class CategoryCreateComponent implements OnDestroy {
		private readonly _translateService: TranslateService,
		private readonly _notifyService: NotifyService,
		private readonly _productsCategoryService: ProductsCategoryService
	) {
		this._translateService.setDefaultLang('en-US');
		this._translateService.use('en-US');
	}
	) {}

	ngOnDestroy() {
		this._ngDestroy$.next();
+0 −2
Original line number Diff line number Diff line
@@ -39,8 +39,6 @@ export class DeviceComponent implements OnDestroy, OnInit {
		this._setupDataForSmartTable();
		this._listenForEntityLocaleTranslate();
		this._applyTranslationOnSmartTable();
		this._translateService.setDefaultLang('en-US');
		this._translateService.use('en-US');
	}

	// Maybe "updateDevice" this function is not in use?!