I have language service that contains direction(ltr/rtl).
So when i open dialog, i specify the direction like this:
const dialogRef = this.dialog.open(SomeComponent,
{ direction: this.i18nService.dir}
);
Is there a way to set the direction for all dialogs according to the service?