premkumarroyal / MonthAndYearPicker

The month and year picker for Android. Now you can pick month and year or only month or only year.
MIT License
162 stars 52 forks source link

How to change languaje of the list of months? #11

Open AlanAbC opened 5 years ago

KananTaghili commented 1 month ago
Locale locale = Locale.ENGLISH; // or other locale - >Locale.forLanguageTag("tr-TR") ;
Locale.setDefault(locale);

This library use Locale.getDefault(); (Phone language) and you can not change it(you can download library zip and change code). If you change default locale, this will affect whole app if you use one activity, if change another activity it will change to phone language.