diff --git a/CHANGELOG.md b/CHANGELOG.md index 807fe7a..2d37124 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,19 +1,22 @@ +## [0.1.2+5] +* Added Indonesian Language support + ## [0.1.2+4] -* fixed not showing 3 rows +* Fixed not showing 3 rows ## [0.1.2+3] -* minimized size of dialog +* Minimized size of dialog ## [0.1.2] -* added screenshots and changed font size to fit properly -* made picker look more similar to the Holo-Theme style +* Added screenshots and changed font size to fit properly +* Made picker look more similar to the Holo-Theme style ## [0.1.1] -* added example and fixed ui bugs -* using properties like in default date picker +* Added example and fixed UI bugs +* Using properties like in default date picker ## [0.1.0] -* initial release. +* Initial release. diff --git a/README.md b/README.md index 1e26524..1e9ac0d 100644 --- a/README.md +++ b/README.md @@ -29,4 +29,5 @@ See the example for simple use - Italian (IT) - Hungarian (HU) - Hebrew (HE) +- Indonesian (ID) diff --git a/lib/i18n/date_picker_i18n.dart b/lib/i18n/date_picker_i18n.dart index 33b528a..d88f6f0 100644 --- a/lib/i18n/date_picker_i18n.dart +++ b/lib/i18n/date_picker_i18n.dart @@ -14,6 +14,7 @@ part 'strings_ko.dart'; part 'strings_it.dart'; part 'strings_hu.dart'; part 'strings_he.dart'; +part 'strings_id.dart'; abstract class _StringsI18n { const _StringsI18n(); @@ -76,6 +77,10 @@ enum DateTimePickerLocale { /// Hebrew (HE) he, + + /// Indonesian (ID) + id, + } /// Default value of date locale @@ -97,6 +102,7 @@ const Map datePickerI18n = { DateTimePickerLocale.it: const _StringsIt(), DateTimePickerLocale.hu: const _StringsHu(), DateTimePickerLocale.he: const _StringsHe(), + DateTimePickerLocale.id: const _StringsId(), }; class DatePickerI18n { diff --git a/lib/i18n/strings_id.dart b/lib/i18n/strings_id.dart new file mode 100644 index 0000000..5c5b239 --- /dev/null +++ b/lib/i18n/strings_id.dart @@ -0,0 +1,59 @@ +part of 'date_picker_i18n.dart'; + +class _StringsId extends _StringsI18n { + const _StringsId(); + + @override + String getCancelText() { + return 'Batal'; + } + + @override + String getDoneText() { + return 'Pilih'; + } + + @override + List getMonths() { + return [ + "Januari", + "Februari", + "Maret", + "April", + "Mei", + "Juni", + "Juli", + "Agustus", + "September", + "Oktober", + "November", + "Desember" + ]; + } + + @override + List getWeeksFull() { + return [ + "Senin", + "Selasa", + "Rabu", + "Kamis", + "Jum'at", + "Sabtu", + "Minggu", + ]; + } + + @override + List getWeeksShort() { + return [ + "Sen", + "Sel", + "Rab", + "Kam", + "Jum", + "Sab", + "Min", + ]; + } +} diff --git a/pubspec.yaml b/pubspec.yaml index c631821..33fbad4 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -1,6 +1,6 @@ name: flutter_holo_date_picker description: A Flutter package of Datepicker that looks like Holo Theme in Android. -version: 0.1.2+4 +version: 0.1.2+5 homepage: https://github.com/kfiross/flutter_holo_date_picker environment: