Greetings, I am a newcomer to Ionic/Angular and have been facing a particular issue for over 20 days now. I have created a small app and would like to implement multi-language support with both RTL and LTR directions. I followed the documentation provided here: https://ionicframework.com/docs/theming/rtl-support/
However, despite following the instructions, the problem persists.
ERROR TypeError: Cannot read property 'setDir' of undefined
Below is an excerpt from my code:
segmentChanged(event) {
this.translateService.use('ar');
this.test = "ar";
if (this.test == "ar"){
this.platform.setDir('rtl', true);
} else {
this.platform.setDir('ltr', true);}
I am utilizing ionic 3
along with ngx-translate
.