New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Right To Left Support #5035
Comments
From @adamdbradley on December 30, 2015 17:38 Yes this is on our roadmap to complete and we would love to get more feedback from experienced RTL dev's to help us point out where we need to improve. Would you be able to provide a checklist of certain parts of ionic2 that do not work well with RTL. Our goal would be to provide an additional RTL css file, and have any JS adjust accordingly depending if the html element has |
From @mashaly100200 on December 30, 2015 18:39 It's my pleasure to help ionic2 team to support RTL if ionic team plan to support rtl thay will need to add the target direction in App configurations , because the application will need to know what is the direction on the start up now when i try to change ionic2 html direction i found that there are things aleady support rtl direction coz pure html konw how to deal with rtl direction I would like to provide assistance as i can to ionic team to help in this great library i know my English is not good , but i hope you understand my words :) |
From @mashaly100200 on December 30, 2015 18:44 plz change this goal " Our goal would be to provide an additional RTL css file " |
From @adamdbradley on December 30, 2015 18:51
Ionic itself will be able to dynamically add this css file for you, depending on the |
From @mashaly100200 on December 30, 2015 20:21 any icon which are right,left,back or forward arrow like back-button icon will need this style |
From @adamdbradley on December 31, 2015 4:27 So @brandyscarney had a good idea that we create all the RTL scss files within the repo and get them ready to be filled. I was thinking that instead of dynamically adding another rtl css, we could have a default Then within our new rtl scss files, the css can be wrapped with |
From @mashaly100200 on December 31, 2015 11:48 yes load rtl dynamically is a good idea , let us start with animation , coz it may be need more effort
if your answer are yes for the previous three questions , then i can congratulate my self coz animation topic don't need any effort and full support rtl direction and ionic team deserve a very big thanks :) |
From @adamdbradley on January 1, 2016 1:53 This is the transition animation for ios: https://github.com/driftyco/ionic2/blob/master/ionic/animations/ios-transition.ts Not sure if this should add logic for RTL, or if there should be a new animation instead. You can however add your own transition, and override the |
From @mashaly100200 on January 1, 2016 21:55 hi @adamdbradley , merry christmas i finished a custom animation class which reverse the default animation class behavior depend on documen.dir also i finished some of css classes that was need to be reversed and if i face more classes need to be reversed , i will add it to this file until i finish one or two real project also rtl need these configurations in app constructor i was trying to add all configuration in one place so i found that i can add all things in the app contractor hope these things can help to make ionic2 fully support rtl Please feel free to add any corrections or suggestions . |
From @adamdbradley on January 2, 2016 3:2 Cool, so it looks like the RTL transition is pretty darn close to the LTR transition, which makes me think it should be an |
From @adamdbradley on January 2, 2016 3:36 Added |
From @adamdbradley on January 2, 2016 3:58 All transitions are now passed So now the ios-transition can add the logic for RTL transitions. |
From @adamdbradley on January 2, 2016 4:38 Added how we can include RTL css so it correctly builds within ionic.css (which includes both md and ios css) and ionic.ios.css (just ios). The thought is that apps which want to include both RTL and LTR css within the same file can set |
From @MatanYed on January 6, 2016 18:14 Just you to know: RTL apps in iOS are partly LTR: |
From @adamdbradley on January 7, 2016 16:41 Added new methods to platform to get and set language and direction: https://github.com/driftyco/ionic2/commit/942bd9b93b97a88554aafc9972c1c2d86de9273f |
From @mashaly100200 on January 12, 2016 21:2 update also i update the animation class |
I have been working on this problem on a moodle mobile app for our company and we need the app to support English and Arabic in the same time, so it's not a problem of switching the direction of everything to RTL but it need to be in run time. I used some tweaks at the beginning using ng-if and some broadcasting through the rootscope in the app, but whenever the user change the language, the app needs a reload, things not working at all with this method. |
As part of this we should also look into this issue #10685 |
Hey all, we're moving the tracking of RTL support in to this issue Brandy will doing some work to get this going so expect to see it soon. |
there are lots of messages here , i didn't find the solution as i'm not good at english . |
@joesleiman There is no solution for you at the moment. A fix is suggested in #11336 and is pending review. |
@AmitMY ok thank you . i have another problem how to change the direction to rtl from html tag in index.html or ion-app or body because the ion-select it's not under |
@joesleiman: If you're using ionic1, I've fixed it under this tag https://github.com/msoni11/ionic/releases/tag/v.1.1.1-rtl.1 You can review and apply changes. |
You set your default 'dir' on the HTML tag, and if you want to change it in runtime, you do 'this.platform.setDit('rtl', true)'. Don't use the dir attribute anywhere else, as nested directions are not supported. Finally, please use the nightly version, as it is more RTL ready than 3.2.1 If you have any other support questions, please use the ionic forum, and for bugs/features use github |
@msoni11 no ionic 3.2.0 |
@AmitMY i'm using in all my app in every root tag [att.dir]='isRtl? 'rtl':'ltr'' (in every form : like ion-content) |
@joesleiman // in app.module.ts
.
.
imports: [
BrowserModule,
IonicModule.forRoot(MyApp, {
pageTransition: 'md-transition' // change the page Transition to avoid "LRT" page Transition
})
.
. |
@AmitMY how can i change the back button icon to right arrow instead of left arrow (when change it to rtl) |
@joesleiman No, having About the back button, if you use the proper way to set direction, as mentioned above, it will flip your arrows, as done here - #11634. It is only available in the nightly version, and a new version (3.3.0) will be released later today. I ask again, please, for these kind of support questions use the forum. Github is for bugs/feature requests. You can read more about RTL here - https://github.com/AmitMY/ionic-site/blob/543cc0dd6d198edd5aa2a9a31ac5bd4702ef5332/content/docs/rtl-support/index.md |
@AmitMY ok i will do ... thank you so much , |
@AmitMY if the user put this.platform.setDir('rtl',true); and close the app and then return to it how can i save for html tag dir='rtl' . so isn't good idea to use it. because it return to dir="ltr" |
@joesleiman So if your app is multidirectional, and you use the user preferences to decide which side, I would recommend using No other solution for now. |
@AmitMY when i use setDir : still the ion-select >> ion-alert : have issue in rtl direction on md (android) |
@AmitMY i solved it by this : |
I think you are not using the nightly version as I suggested ( |
@AmitMY can you complete the discussion here because i'm finding more and more bugs: |
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. |
From @mashaly100200 on December 30, 2015 17:24
kindly add support rtl to animation and the components
Copied from original issue: driftyco/ionic2#832
The text was updated successfully, but these errors were encountered: