Skip to content

Commit 8fac078

Browse files
smstammSteph Stamm
andauthored
fix strings for localization (#990)
Co-authored-by: Steph Stamm <stephanie.stamm@mx.com>
1 parent ecef535 commit 8fac078

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mx-react-components",
3-
"version": "8.6.0",
3+
"version": "8.6.1",
44
"description": "A collection of generic React UI components",
55
"main": "dist/index.js",
66
"files": [

src/components/DateRangePicker/MonthTable.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,16 +77,16 @@ class MonthTable extends React.Component {
7777
const ariaLabelDateText = moment(startDate).format('dddd, MMMM Do, YYYY');
7878

7979
if (!isSelectedDay && isActiveRange) {
80-
ariaLabelStateText = 'within selected range.';
80+
ariaLabelStateText = ', within selected range.';
8181
} else if (isSelectedStartDay) {
82-
ariaLabelStateText = 'selected start date for range.';
82+
ariaLabelStateText = ', selected start date for range.';
8383
} else if (isSelectedEndDay) {
84-
ariaLabelStateText = 'selected end date for range.';
84+
ariaLabelStateText = ', selected end date for range.';
8585
}
8686

8787
const day = (
8888
<a
89-
aria-label={getTranslation(`${ariaLabelBeginningText}, %1, ${ariaLabelStateText}`, ariaLabelDateText)}
89+
aria-label={getTranslation(`${ariaLabelBeginningText}, %1${ariaLabelStateText}`, ariaLabelDateText)}
9090
aria-pressed={isSelectedDay}
9191
className={`${css({
9292
...styles.calendarDay,

0 commit comments

Comments
 (0)