From 578dffbe3021c0228a01e5af0c8fccded198a68b Mon Sep 17 00:00:00 2001 From: kabitacode Date: Mon, 12 Oct 2020 16:47:18 +0700 Subject: [PATCH] change props for indonesia language --- README.md | 8 ++++---- index.js | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 7388049..39d6c62 100644 --- a/README.md +++ b/README.md @@ -74,10 +74,10 @@ class CreateNewAppointment extends Component { | **colorTheme** | _string/color_ | #16a45f | Color for componet | | **isSelectSingle** | _Bool_ | false | Selelect only one option | | **showSearchBox** | _Bool_ | true | Show or hide search field | -| **cancelButtonText** | _string_ | Hủy | Cancel button text title | -| **selectButtonText** | _String_ | Chọn | Select button text title | -| **searchPlaceHolderText** | _String_ | Nhập vào từ khóa | Placeholder text for search field | -| **listEmptyTitle** | _String_ | Không tìm thấy lựa chọn phù hợp | Title to show when there's no item to be render | +| **cancelButtonText** | _string_ | Batal | Cancel button text title | +| **selectButtonText** | _String_ | Pilih | Select button text title | +| **searchPlaceHolderText** | _String_ | Cari | Placeholder text for search field | +| **listEmptyTitle** | _String_ | Data Tidak Ada | Title to show when there's no item to be render | | **defaultFontName** | _String_ | none | Set custom font for all component | | **selectedTitleStyle** | _Object_ | none | Set custom style for display selected title text | | **buttonTextStyle** | _Object_ | none | Set custom button text style | diff --git a/index.js b/index.js index 5c94a58..89e68c0 100644 --- a/index.js +++ b/index.js @@ -13,10 +13,10 @@ const INIT_HEIGHT = height * 0.6; // create a component class Select2 extends Component { static defaultProps = { - cancelButtonText: 'Hủy', - selectButtonText: 'Chọn', - searchPlaceHolderText: "Nhập vào từ khóa", - listEmptyTitle: 'Không tìm thấy lựa chọn phù hợp', + cancelButtonText: 'Batal', + selectButtonText: 'Pilih', + searchPlaceHolderText: "Cari", + listEmptyTitle: 'Data Tidak Ada', colorTheme: '#16a45f', buttonTextStyle: {}, buttonStyle: {},