[ADF-4582] User preference - set layout orientation based on locale (#4744)

* set textOrientation based on locale

* remove manually setting textOrientation

* tests

* revert to getBrowserCultureLang

* match languages keys

* update tests

* fix types
This commit is contained in:
Cilibiu Bogdan
2019-05-22 16:02:51 +03:00
committed by Denys Vuika
parent 26a495c95d
commit 58cf10be5f
3 changed files with 77 additions and 8 deletions

View File

@@ -130,8 +130,6 @@ export class AppLayoutComponent implements OnInit {
if (this.alfrescoApiService.getInstance().isOauthConfiguration()) {
this.enableRedirect = false;
}
this.userPreferencesService.set('textOrientation', this.direction);
}
setState(state) {