-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pickers] Add Urdu (ur-PK) locale (#7007)
- Loading branch information
1 parent
10d4133
commit c35efab
Showing
6 changed files
with
81 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
import { DateView } from '../internals/models'; | ||
|
||
const urPKPickers: Partial<PickersLocaleText<any>> = { | ||
// Calendar navigation | ||
previousMonth: 'پچھلا مہینہ', | ||
nextMonth: 'اگلا مہینہ', | ||
|
||
// View navigation | ||
openPreviousView: 'پچھلا ویو کھولیں', | ||
openNextView: 'اگلا ویو کھولیں', | ||
calendarViewSwitchingButtonAriaLabel: (view: DateView) => | ||
view === 'year' | ||
? 'سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں' | ||
: 'کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں', | ||
inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => | ||
isKeyboardInputOpen | ||
? `،ٹیکسٹ ویو کھلا ہے ${viewType} ویو کھولیں` | ||
: `${viewType} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`, | ||
|
||
// DateRange placeholders | ||
start: 'شروع', | ||
end: 'ختم', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'کینسل', | ||
clearButtonLabel: 'کلئیر', | ||
okButtonLabel: 'اوکے', | ||
todayButtonLabel: 'آج', | ||
|
||
// Toolbar titles | ||
datePickerToolbarTitle: 'تاریخ منتخب کریں', | ||
dateTimePickerToolbarTitle: 'تاریخ اور وقت منتخب کریں', | ||
timePickerToolbarTitle: 'وقت منتخب کریں', | ||
dateRangePickerToolbarTitle: 'تاریخوں کی رینج منتخب کریں', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`${view} منتخب کریں ${ | ||
time === null ? 'کوئی وقت منتخب نہیں' : `منتخب وقت ہے ${adapter.format(time, 'fullTime')}` | ||
}`, | ||
hoursClockNumberText: (hours) => `${hours} گھنٹے`, | ||
minutesClockNumberText: (minutes) => `${minutes} منٹ`, | ||
secondsClockNumberText: (seconds) => `${seconds} سیکنڈ`, | ||
|
||
// Calendar labels | ||
calendarWeekNumberHeaderLabel: 'ہفتہ نمبر', | ||
calendarWeekNumberHeaderText: 'نمبر', | ||
calendarWeekNumberAriaLabelText: (weekNumber) => `ہفتہ ${weekNumber}`, | ||
calendarWeekNumberText: (weekNumber) => `${weekNumber}`, | ||
|
||
// Open picker labels | ||
openDatePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `تاریخ منتخب کریں، منتخب شدہ تاریخ ہے ${utils.format(value, 'fullDate')}` | ||
: 'تاریخ منتخب کریں', | ||
openTimePickerDialogue: (value, utils) => | ||
value !== null && utils.isValid(value) | ||
? `وقت منتخب کریں، منتخب شدہ وقت ہے ${utils.format(value, 'fullTime')}` | ||
: 'وقت منتخب کریں', | ||
|
||
// Table labels | ||
timeTableLabel: 'وقت منتخب کریں', | ||
dateTableLabel: 'تاریخ منتخب کریں', | ||
|
||
// Field section placeholders | ||
// fieldYearPlaceholder: params => 'Y'.repeat(params.digitAmount), | ||
// fieldMonthPlaceholder: params => params.contentType === 'letter' ? 'MMMM' : 'MM', | ||
// fieldDayPlaceholder: () => 'DD', | ||
// fieldHoursPlaceholder: () => 'hh', | ||
// fieldMinutesPlaceholder: () => 'mm', | ||
// fieldSecondsPlaceholder: () => 'ss', | ||
// fieldMeridiemPlaceholder: () => 'aa', | ||
}; | ||
|
||
export const urPK = getPickersLocalization(urPKPickers); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters