We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 22266da commit 9ad5531Copy full SHA for 9ad5531
src/providers/lang.ts
@@ -55,7 +55,9 @@ export class CoreLangProvider {
55
56
translate.onLangChange.subscribe((event: any) => {
57
platform.setLang(event.lang, true);
58
- platform.setDir(this.translate.instant('core.thisdirection'), true);
+
59
+ const dir = this.translate.instant('core.thisdirection');
60
+ platform.setDir(dir.indexOf('rtl') != -1 ? 'rtl' : 'ltr', true);
61
});
62
}
63
0 commit comments