UNPKG

9.42 kBJavaScriptView Raw
1var calendarLabel = 'Calendar';
2var roleDescription = 'datepicker';
3var closeDatePicker = 'Close';
4var focusStartDate = 'Interact with the calendar and add the check-in date for your trip.';
5var clearDate = 'Clear Date';
6var clearDates = 'Clear Dates';
7var jumpToPrevMonth = 'Move backward to switch to the previous month.';
8var jumpToNextMonth = 'Move forward to switch to the next month.';
9var keyboardShortcuts = 'Keyboard Shortcuts';
10var showKeyboardShortcutsPanel = 'Open the keyboard shortcuts panel.';
11var hideKeyboardShortcutsPanel = 'Close the shortcuts panel.';
12var openThisPanel = 'Open this panel.';
13var enterKey = 'Enter key';
14var leftArrowRightArrow = 'Right and left arrow keys';
15var upArrowDownArrow = 'up and down arrow keys';
16var pageUpPageDown = 'page up and page down keys';
17var homeEnd = 'Home and end keys';
18var escape = 'Escape key';
19var questionMark = 'Question mark';
20var selectFocusedDate = 'Select the date in focus.';
21var moveFocusByOneDay = 'Move backward (left) and forward (right) by one day.';
22var moveFocusByOneWeek = 'Move backward (up) and forward (down) by one week.';
23var moveFocusByOneMonth = 'Switch months.';
24var moveFocustoStartAndEndOfWeek = 'Go to the first or last day of a week.';
25var returnFocusToInput = 'Return to the date input field.';
26var keyboardForwardNavigationInstructions = 'Navigate forward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';
27var keyboardBackwardNavigationInstructions = 'Navigate backward to interact with the calendar and select a date. Press the question mark key to get the keyboard shortcuts for changing dates.';
28
29var chooseAvailableStartDate = function chooseAvailableStartDate(_ref) {
30 var date = _ref.date;
31 return "Choose ".concat(date, " as your check-in date. It\u2019s available.");
32};
33
34var chooseAvailableEndDate = function chooseAvailableEndDate(_ref2) {
35 var date = _ref2.date;
36 return "Choose ".concat(date, " as your check-out date. It\u2019s available.");
37};
38
39var chooseAvailableDate = function chooseAvailableDate(_ref3) {
40 var date = _ref3.date;
41 return date;
42};
43
44var dateIsUnavailable = function dateIsUnavailable(_ref4) {
45 var date = _ref4.date;
46 return "Not available. ".concat(date);
47};
48
49var dateIsSelected = function dateIsSelected(_ref5) {
50 var date = _ref5.date;
51 return "Selected. ".concat(date);
52};
53
54var dateIsSelectedAsStartDate = function dateIsSelectedAsStartDate(_ref6) {
55 var date = _ref6.date;
56 return "Selected as start date. ".concat(date);
57};
58
59var dateIsSelectedAsEndDate = function dateIsSelectedAsEndDate(_ref7) {
60 var date = _ref7.date;
61 return "Selected as end date. ".concat(date);
62};
63
64export default {
65 calendarLabel: calendarLabel,
66 roleDescription: roleDescription,
67 closeDatePicker: closeDatePicker,
68 focusStartDate: focusStartDate,
69 clearDate: clearDate,
70 clearDates: clearDates,
71 jumpToPrevMonth: jumpToPrevMonth,
72 jumpToNextMonth: jumpToNextMonth,
73 keyboardShortcuts: keyboardShortcuts,
74 showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
75 hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
76 openThisPanel: openThisPanel,
77 enterKey: enterKey,
78 leftArrowRightArrow: leftArrowRightArrow,
79 upArrowDownArrow: upArrowDownArrow,
80 pageUpPageDown: pageUpPageDown,
81 homeEnd: homeEnd,
82 escape: escape,
83 questionMark: questionMark,
84 selectFocusedDate: selectFocusedDate,
85 moveFocusByOneDay: moveFocusByOneDay,
86 moveFocusByOneWeek: moveFocusByOneWeek,
87 moveFocusByOneMonth: moveFocusByOneMonth,
88 moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
89 returnFocusToInput: returnFocusToInput,
90 keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
91 keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
92 chooseAvailableStartDate: chooseAvailableStartDate,
93 chooseAvailableEndDate: chooseAvailableEndDate,
94 dateIsUnavailable: dateIsUnavailable,
95 dateIsSelected: dateIsSelected,
96 dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
97 dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
98};
99export var DateRangePickerPhrases = {
100 calendarLabel: calendarLabel,
101 roleDescription: roleDescription,
102 closeDatePicker: closeDatePicker,
103 clearDates: clearDates,
104 focusStartDate: focusStartDate,
105 jumpToPrevMonth: jumpToPrevMonth,
106 jumpToNextMonth: jumpToNextMonth,
107 keyboardShortcuts: keyboardShortcuts,
108 showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
109 hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
110 openThisPanel: openThisPanel,
111 enterKey: enterKey,
112 leftArrowRightArrow: leftArrowRightArrow,
113 upArrowDownArrow: upArrowDownArrow,
114 pageUpPageDown: pageUpPageDown,
115 homeEnd: homeEnd,
116 escape: escape,
117 questionMark: questionMark,
118 selectFocusedDate: selectFocusedDate,
119 moveFocusByOneDay: moveFocusByOneDay,
120 moveFocusByOneWeek: moveFocusByOneWeek,
121 moveFocusByOneMonth: moveFocusByOneMonth,
122 moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
123 returnFocusToInput: returnFocusToInput,
124 keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
125 keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
126 chooseAvailableStartDate: chooseAvailableStartDate,
127 chooseAvailableEndDate: chooseAvailableEndDate,
128 dateIsUnavailable: dateIsUnavailable,
129 dateIsSelected: dateIsSelected,
130 dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
131 dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
132};
133export var DateRangePickerInputPhrases = {
134 focusStartDate: focusStartDate,
135 clearDates: clearDates,
136 keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
137 keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions
138};
139export var SingleDatePickerPhrases = {
140 calendarLabel: calendarLabel,
141 roleDescription: roleDescription,
142 closeDatePicker: closeDatePicker,
143 clearDate: clearDate,
144 jumpToPrevMonth: jumpToPrevMonth,
145 jumpToNextMonth: jumpToNextMonth,
146 keyboardShortcuts: keyboardShortcuts,
147 showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
148 hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
149 openThisPanel: openThisPanel,
150 enterKey: enterKey,
151 leftArrowRightArrow: leftArrowRightArrow,
152 upArrowDownArrow: upArrowDownArrow,
153 pageUpPageDown: pageUpPageDown,
154 homeEnd: homeEnd,
155 escape: escape,
156 questionMark: questionMark,
157 selectFocusedDate: selectFocusedDate,
158 moveFocusByOneDay: moveFocusByOneDay,
159 moveFocusByOneWeek: moveFocusByOneWeek,
160 moveFocusByOneMonth: moveFocusByOneMonth,
161 moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
162 returnFocusToInput: returnFocusToInput,
163 keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
164 keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions,
165 chooseAvailableDate: chooseAvailableDate,
166 dateIsUnavailable: dateIsUnavailable,
167 dateIsSelected: dateIsSelected
168};
169export var SingleDatePickerInputPhrases = {
170 clearDate: clearDate,
171 keyboardForwardNavigationInstructions: keyboardForwardNavigationInstructions,
172 keyboardBackwardNavigationInstructions: keyboardBackwardNavigationInstructions
173};
174export var DayPickerPhrases = {
175 calendarLabel: calendarLabel,
176 roleDescription: roleDescription,
177 jumpToPrevMonth: jumpToPrevMonth,
178 jumpToNextMonth: jumpToNextMonth,
179 keyboardShortcuts: keyboardShortcuts,
180 showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
181 hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
182 openThisPanel: openThisPanel,
183 enterKey: enterKey,
184 leftArrowRightArrow: leftArrowRightArrow,
185 upArrowDownArrow: upArrowDownArrow,
186 pageUpPageDown: pageUpPageDown,
187 homeEnd: homeEnd,
188 escape: escape,
189 questionMark: questionMark,
190 selectFocusedDate: selectFocusedDate,
191 moveFocusByOneDay: moveFocusByOneDay,
192 moveFocusByOneWeek: moveFocusByOneWeek,
193 moveFocusByOneMonth: moveFocusByOneMonth,
194 moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
195 returnFocusToInput: returnFocusToInput,
196 chooseAvailableStartDate: chooseAvailableStartDate,
197 chooseAvailableEndDate: chooseAvailableEndDate,
198 chooseAvailableDate: chooseAvailableDate,
199 dateIsUnavailable: dateIsUnavailable,
200 dateIsSelected: dateIsSelected,
201 dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
202 dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
203};
204export var DayPickerKeyboardShortcutsPhrases = {
205 keyboardShortcuts: keyboardShortcuts,
206 showKeyboardShortcutsPanel: showKeyboardShortcutsPanel,
207 hideKeyboardShortcutsPanel: hideKeyboardShortcutsPanel,
208 openThisPanel: openThisPanel,
209 enterKey: enterKey,
210 leftArrowRightArrow: leftArrowRightArrow,
211 upArrowDownArrow: upArrowDownArrow,
212 pageUpPageDown: pageUpPageDown,
213 homeEnd: homeEnd,
214 escape: escape,
215 questionMark: questionMark,
216 selectFocusedDate: selectFocusedDate,
217 moveFocusByOneDay: moveFocusByOneDay,
218 moveFocusByOneWeek: moveFocusByOneWeek,
219 moveFocusByOneMonth: moveFocusByOneMonth,
220 moveFocustoStartAndEndOfWeek: moveFocustoStartAndEndOfWeek,
221 returnFocusToInput: returnFocusToInput
222};
223export var DayPickerNavigationPhrases = {
224 jumpToPrevMonth: jumpToPrevMonth,
225 jumpToNextMonth: jumpToNextMonth
226};
227export var CalendarDayPhrases = {
228 chooseAvailableDate: chooseAvailableDate,
229 dateIsUnavailable: dateIsUnavailable,
230 dateIsSelected: dateIsSelected,
231 dateIsSelectedAsStartDate: dateIsSelectedAsStartDate,
232 dateIsSelectedAsEndDate: dateIsSelectedAsEndDate
233};
\No newline at end of file