UNPKG

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