MOBILE-649 lang: Set text direction depending on language
parent
2875f5c1d4
commit
ce0411aa4d
|
@ -214,6 +214,7 @@
|
||||||
"tablet": "Tablet",
|
"tablet": "Tablet",
|
||||||
"teachers": "Teachers",
|
"teachers": "Teachers",
|
||||||
"thereisdatatosync": "There are offline {{$a}} to be synchronized.",
|
"thereisdatatosync": "There are offline {{$a}} to be synchronized.",
|
||||||
|
"thisdirection": "ltr",
|
||||||
"time": "Time",
|
"time": "Time",
|
||||||
"timesup": "Time is up!",
|
"timesup": "Time is up!",
|
||||||
"today": "Today",
|
"today": "Today",
|
||||||
|
|
|
@ -44,6 +44,11 @@ export class CoreLangProvider {
|
||||||
moment.locale(language);
|
moment.locale(language);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
translate.onLangChange.subscribe((event: any) => {
|
||||||
|
platform.setLang(event.lang, true);
|
||||||
|
platform.setDir(this.translate.instant('core.thisdirection'), true);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -8,7 +8,7 @@ $font-path: "../assets/fonts";
|
||||||
// The app direction is used to include
|
// The app direction is used to include
|
||||||
// rtl styles in your app. For more info, please see:
|
// rtl styles in your app. For more info, please see:
|
||||||
// http://ionicframework.com/docs/theming/rtl-support/
|
// http://ionicframework.com/docs/theming/rtl-support/
|
||||||
$app-direction: ltr;
|
$app-direction: multi;
|
||||||
|
|
||||||
|
|
||||||
@import "ionic.globals";
|
@import "ionic.globals";
|
||||||
|
|
Loading…
Reference in New Issue