Skip to content
Skip to main content

Localizing your Scheduler implementation

Last updated:

Nylas offers Scheduler in the following languages:

  • English (en)
  • German (de)
  • Dutch (nl)
  • Japanese (ja)
  • Swedish (sv)
  • Spanish (es)
  • French (fr)
  • Korean (ko)
  • Simplified Chinese (zh)

For any unsupported languages, Nylas defaults to English.

Every UI text element in the Scheduler UI components includes a value that determines the label or text displayed in the UI (for example, nextButton: Next). You can override the default values in each supported language to customize your Scheduler UI.

  1. In the Scheduler Editor Component or Scheduler Component, set localization.
  2. Specify your desired language and any key/value pairs for the UI text that you want to update.

The following example updates the Availability tab label in the Scheduler Editor to “Open Slots” in English, and “Freie Slots” in German.

Localization support for Scheduler Editor and Scheduling Pages

Section titled “Localization support for Scheduler Editor and Scheduling Pages”

Since @nylas/web-elements 2.5.2, the Scheduling Component detects the guest’s browser language and shows the Scheduling Page in that language when it’s one of the 9 supported languages. Earlier versions always started in English. The Scheduling Component picks its starting language in this order:

  1. The lang (or language) URL query parameter, for example ?lang=fr.
  2. The defaultLanguage prop.
  3. The language in bookingInfo.
  4. The selectedLanguage in defaultSchedulerState.
  5. The browser language.
  6. English (en).

The Scheduler Editor Component doesn’t detect the browser language. It starts in the language you set with defaultLanguage, or in English. On either component, users can switch languages at any time with the Language dropdown.

The following example pins a Scheduling Page to Spanish, whatever the guest’s browser language is.

Localization support for guest email notifications

Section titled “Localization support for guest email notifications”

When a guest books an event, they can select their preferred language using the Language dropdown on the Scheduling Page. When the booking is confirmed, the guest receives a confirmation email in the language they chose. Scheduler also sends other email notifications, like emails for rescheduled or cancelled bookings, in the same language.

Organizers and participants receive email notifications in English only.