Skip to content

nylas-locale-switch

The nylas-locale-switch element allows users to select a timezone and language.

NameselectedLanguage
DescriptionThe selected language.
Typestring
NameselectedTimezone
DescriptionThe selected time zone.
Typestring

The following props are automatically configured when used within NylasScheduling. Set these props manually only if you’re using the component independently.

NamebookingInfo
DescriptionThe booking information.
Typeundefined | { primaryParticipant: NylasSchedulerBookingParticipant; startTime?: Date |
undefined; endTime?: Date | undefined; timezone?: string | undefined; language?: string |
undefined; guests?: NylasSchedulerBookingParticipant[] | undefined; additionalFields?:
Record<string, { value: string; type?: string | undefined; readOnly?: boolean | undefined; }> | undefined; }
NamethemeConfig
DescriptionThe theme configuration.
Typeany
EventDescription
languageChangedFired when the language is changed.
timezoneChangedFired when the time zone is changed.
PartDescription
nlsThe locale switch container.
nls__languageThe language select container.
nls__language-drop-buttonThe language dropdown button.
nls__language-drop-contentThe language dropdown content.
nls__language-drop-labelThe language dropdown label.
nls__language-dropdownThe language dropdown.
nls__timezoneThe time zone select container.
nls__timezone-drop-buttonThe time zone dropdown button.
nls__timezone-drop-button-selected-labelThe time zone dropdown button selected label.
nls__timezone-drop-contentThe time zone dropdown content.
nls__timezone-drop-labelThe time zone dropdown label.
nls__timezone-dropdownThe time zone dropdown.

The nylas-locale-switch element is automatically included in the main NylasScheduling component. The following code samples show how to use the element on its own.