I am using joda-time library for my Android project instead of Calendar. but unlike calendar I am facing a problem with locale language.
According to system/device language all type of text is translating but the "d" pattern is not translating, it always stays in English language.
Like say with "d" pattern, if a variable is 15, for English language locale it is: 15, but for Arabic language locale it is still: 15, it should convert to arabic 15 (١٥). It is not translating.
How can I do this? is this something joda-time lib does not support, or I am doing something wrong.
Check the following notice at the Home Page of Joda-Time
Using the modern date-time API:
Output:
Learn more about the modern date-time API from Trail: Date Time.
For any reason, if you have to stick to Java 6 or Java 7, you can use ThreeTen-Backport which backports most of the java.time functionality to Java 6 & 7. If you are working for an Android project and your Android API level is still not compliant with Java-8, check Java 8+ APIs available through desugaring and How to use ThreeTenABP in Android Project.