Skip to content
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

Transalate date and time picker to indonesian #48537

Merged
merged 8 commits into from
Apr 19, 2024
10 changes: 9 additions & 1 deletion components/date-picker/locale/id_ID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@ import type { PickerLocale } from '../generatePicker';
const locale: PickerLocale = {
lang: {
placeholder: 'Pilih tanggal',
rangePlaceholder: ['Mulai tanggal', 'Tanggal akhir'],
yearPlaceholder: 'Pilih tahun',
quarterPlaceholder: 'Pilih kuartal',
monthPlaceholder: 'Pilih bulan',
weekPlaceholder: 'Pilih minggu',
rangePlaceholder: ['Tanggal awal', 'Tanggal akhir'],
rangeYearPlaceholder: ['Tahun awal', 'Tahun akhir'],
rangeQuarterPlaceholder: ['Kuartal awal', 'Kuartal akhir'],
rangeMonthPlaceholder: ['Bulan awal', 'Bulan akhir'],
rangeWeekPlaceholder: ['Minggu awal', 'Minggu akhir'],
...CalendarLocale,
},
timePickerLocale: {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146780,7 +146780,7 @@ exports[`Locale Provider should display the text as id 1`] = `
aria-invalid="false"
autocomplete="off"
date-range="start"
placeholder="Mulai tanggal"
placeholder="Tanggal awal"
size="12"
value=""
/>
Expand Down
1 change: 1 addition & 0 deletions components/time-picker/locale/id_ID.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import type { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Pilih waktu',
rangePlaceholder: ['Waktu awal', 'Waktu akhir'],
};

export default locale;