diff options
Diffstat (limited to 'client/src/app/app.component.ts')
-rw-r--r-- | client/src/app/app.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/app.component.ts b/client/src/app/app.component.ts index 2056d6669..c1e296182 100644 --- a/client/src/app/app.component.ts +++ b/client/src/app/app.component.ts | |||
@@ -1,6 +1,6 @@ | |||
1 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' | 1 | import { Hotkey, HotkeysService } from 'angular2-hotkeys' |
2 | import { filter, map, pairwise, switchMap } from 'rxjs/operators' | 2 | import { filter, map, pairwise, switchMap } from 'rxjs/operators' |
3 | import { DOCUMENT, PlatformLocation, ViewportScroller } from '@angular/common' | 3 | import { DOCUMENT, getLocaleDirection, PlatformLocation, ViewportScroller } from '@angular/common' |
4 | import { AfterViewInit, Component, Inject, LOCALE_ID, OnInit, ViewChild } from '@angular/core' | 4 | import { AfterViewInit, Component, Inject, LOCALE_ID, OnInit, ViewChild } from '@angular/core' |
5 | import { DomSanitizer, SafeHtml } from '@angular/platform-browser' | 5 | import { DomSanitizer, SafeHtml } from '@angular/platform-browser' |
6 | import { Event, GuardsCheckStart, NavigationEnd, RouteConfigLoadEnd, RouteConfigLoadStart, Router, Scroll } from '@angular/router' | 6 | import { Event, GuardsCheckStart, NavigationEnd, RouteConfigLoadEnd, RouteConfigLoadStart, Router, Scroll } from '@angular/router' |
@@ -107,6 +107,7 @@ export class AppComponent implements OnInit, AfterViewInit { | |||
107 | this.openModalsIfNeeded() | 107 | this.openModalsIfNeeded() |
108 | 108 | ||
109 | this.document.documentElement.lang = getShortLocale(this.localeId) | 109 | this.document.documentElement.lang = getShortLocale(this.localeId) |
110 | this.document.documentElement.dir = getLocaleDirection(this.localeId) | ||
110 | } | 111 | } |
111 | 112 | ||
112 | ngAfterViewInit () { | 113 | ngAfterViewInit () { |