-
Notifications
You must be signed in to change notification settings - Fork 0
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 (mui#7007)
- Loading branch information
1 parent
754632c
commit f2ed21a
Showing
9 changed files
with
73 additions
and
20 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
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,62 @@ | ||
import { PickersLocaleText } from './utils/pickersLocaleTextApi'; | ||
import { getPickersLocalization } from './utils/getPickersLocalization'; | ||
import { CalendarPickerView } from '../internals/models'; | ||
|
||
const urPKPickers: Partial<PickersLocaleText<any>> = { | ||
// Calendar navigation | ||
previousMonth: 'پچھلا مہینہ', | ||
nextMonth: 'اگلا مہینہ', | ||
|
||
// View navigation | ||
openPreviousView: 'پچھلا ویو کھولیں', | ||
openNextView: 'اگلا ویو کھولیں', | ||
calendarViewSwitchingButtonAriaLabel: (view: CalendarPickerView) => | ||
view === 'year' | ||
? 'سال والا ویو کھلا ہے۔ کیلنڈر والا ویو کھولیں' | ||
: 'کیلنڈر والا ویو کھلا ہے۔ سال والا ویو کھولیں', | ||
inputModeToggleButtonAriaLabel: (isKeyboardInputOpen, viewType) => | ||
isKeyboardInputOpen | ||
? `،ٹیکسٹ ویو کھلا ہے ${viewType} ویو کھولیں` | ||
: `${viewType} ویو کھلا ہے، ٹیکسٹ ویو کھولیں`, | ||
|
||
// DateRange placeholders | ||
start: 'شروع', | ||
end: 'ختم', | ||
|
||
// Action bar | ||
cancelButtonLabel: 'کینسل', | ||
clearButtonLabel: 'کلئیر', | ||
okButtonLabel: 'اوکے', | ||
todayButtonLabel: 'آج', | ||
|
||
// Toolbar titles | ||
datePickerDefaultToolbarTitle: 'تاریخ منتخب کریں', | ||
dateTimePickerDefaultToolbarTitle: 'تاریخ اور وقت منتخب کریں', | ||
timePickerDefaultToolbarTitle: 'وقت منتخب کریں', | ||
dateRangePickerDefaultToolbarTitle: 'تاریخوں کی رینج منتخب کریں', | ||
|
||
// Clock labels | ||
clockLabelText: (view, time, adapter) => | ||
`${view} منتخب کریں ${ | ||
time === null ? 'کوئی وقت منتخب نہیں' : `منتخب وقت ہے ${adapter.format(time, 'fullTime')}` | ||
}`, | ||
hoursClockNumberText: (hours) => `${hours} گھنٹے`, | ||
minutesClockNumberText: (minutes) => `${minutes} منٹ`, | ||
secondsClockNumberText: (seconds) => `${seconds} سیکنڈ`, | ||
|
||
// 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: 'تاریخ منتخب کریں', | ||
}; | ||
|
||
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