Within this component, there is a form that needs to support two languages, each with its own unique CSS style - one for left-to-right (ltr) direction, and the other for right-to-left (rtl) direction.
Is there a way to conditionally apply two different CSS files to this component?
Additionally, this component includes a dialog display.
ngAfterViewInit() {
this.dialog.open(chooseLanguageComponent);
}
Users should be able to select their preferred language (English or Arabic), which will then determine which CSS file is applied - style1.css for English and style2.css for Arabic.
The technology stack being used is Angular 8, along with Angular material and NG-ZORRO.