From 5fc7a8b3a423e8d25fd603d6d1f8b317dbefc91d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anders=20M=C3=B6rtsell?= Date: Sat, 24 Aug 2019 22:18:29 +0200 Subject: [PATCH] Finalized localization issues --- .../EventRecurrenceInfoMonthly.tsx | 8 ++++---- .../EventRecurrenceInfoYearly.tsx | 6 +++--- samples/react-calendar/src/webparts/calendar/loc/en-us.js | 5 +++-- .../src/webparts/calendar/loc/mystrings.d.ts | 1 + samples/react-calendar/src/webparts/calendar/loc/sv-se.js | 3 ++- 5 files changed, 13 insertions(+), 10 deletions(-) diff --git a/samples/react-calendar/src/controls/EventRecurrenceInfoMonthly/EventRecurrenceInfoMonthly.tsx b/samples/react-calendar/src/controls/EventRecurrenceInfoMonthly/EventRecurrenceInfoMonthly.tsx index 3a207434d..c2130722f 100644 --- a/samples/react-calendar/src/controls/EventRecurrenceInfoMonthly/EventRecurrenceInfoMonthly.tsx +++ b/samples/react-calendar/src/controls/EventRecurrenceInfoMonthly/EventRecurrenceInfoMonthly.tsx @@ -254,7 +254,7 @@ export class EventRecurrenceInfoMonthly extends React.Component, item: IDropdownOption):void { - this.setState({selectedWeekOrderMonth: item.text}); + this.setState({selectedWeekOrderMonth: item.key.toString()}); this.applyRecurrence(); } @@ -472,7 +472,7 @@ export class EventRecurrenceInfoMonthly extends React.Component
- + , item: IDropdownOption): void { - this.setState({ selectedWeekOrderMonth: item.text }); + this.setState({ selectedWeekOrderMonth: item.key.toString() }); this.applyRecurrence(); } @@ -232,7 +232,7 @@ export class EventRecurrenceInfoYearly extends React.Component, item: IDropdownOption): void { - this.setState({ selectedWeekDay: item.text }); + this.setState({ selectedWeekDay: item.key.toString() }); this.applyRecurrence(); } @@ -526,7 +526,7 @@ export class EventRecurrenceInfoYearly extends React.Component
- +