Skip to Content

Text and translation

Override any text in the widget with the strings attribute, one key at a time or all of it for a translation.

Every word the widget shows can be replaced. Pass a JSON object in the strings attribute; keys you leave out keep their English default.

<whocoming-rsvp
  event="evt_demo0000000000000001"
  strings='{"rsvp":"Save my seat","submit":"Count me in","goingTitle":"See you Friday!"}'
></whocoming-rsvp>

Use single quotes around the attribute so the JSON's double quotes do not need escaping.

Rules

  • Unknown keys, non-string values and invalid JSON are ignored. A broken override never breaks the widget.
  • {placeholders} are filled in for you: "{going} going, {left} spots left". Keep the ones you need; an unknown placeholder is shown as written.
  • locale is not text. It sets the language for dates (a BCP 47 tag such as fr or es-MX). When empty, the widget uses your page's <html lang>.

A full translation

<html lang="es">
  ...
  <whocoming-rsvp
    event="evt_demo0000000000000001"
    strings='{
      "rsvp": "Confirmar asistencia",
      "name": "Nombre",
      "email": "Correo",
      "submit": "Enviar",
      "goingTitle": "¡Estás dentro!",
      "goingBody": "Enviamos los detalles a {email}."
    }'
  ></whocoming-rsvp>
</html>

From JavaScript, build the object and set it with JSON.stringify:

const widget = document.querySelector("whocoming-rsvp");
widget.setAttribute("strings", JSON.stringify({ rsvp: "Save my seat" }));

Every key

This list is read from the widget's source, so it is always complete.

KeyDefault
locale(empty)
Not text: the BCP 47 language for dates, such as fr. Empty means the page's lang.
loadingLoading event
rsvpRSVP
joinWaitlistJoin the waitlist
countFirstBe the first to RSVP
countGoing{going} going
Placeholders: {going}.
countSpots{going} going, {left} spots left
Placeholders: {going}, {left}.
countOneSpot{going} going, 1 spot left
Placeholders: {going}.
countSpotsOnly{left} spots left
Placeholders: {left}.
countFull{going} going, no spots left
Placeholders: {going}.
countWaitlist{going} going, {waitlisted} on the waitlist
Placeholders: {going}, {waitlisted}.
onlineOnline
fullThis event is full.
fullWaitlistNoteIt's full, but you can join the waitlist. We'll email you if a spot opens up.
endedThis event has ended.
cancelledThis event was cancelled.
loadErrorWe couldn't load this event.
notFoundWe couldn't find this event.
missingEventThis RSVP widget is missing its event ID.
retryTry again
formTitleYour details
nameName
emailEmail
guestsBringing anyone?
guestsNoneJust me
guestsSomeMe + {n}
Placeholders: {n}, the number of extra guests.
chooseOneChoose one
optional(optional)
rememberRemember me on this device
submitSend RSVP
submitWaitlistJoin the waitlist
sendingSending
backBack
honeypotLeave this empty
Label of the hidden anti-spam field. Screen readers can reach it.
needNamePlease enter your name.
needEmailPlease enter a valid email address.
needFieldPlease fill this in.
needTickPlease tick this box.
fixErrorsPlease check the highlighted fields.
goingTitleYou're in
goingBodyWe sent the details to {email}.
Placeholders: {email}.
waitlistTitleYou're on the waitlist
waitlistBodyWe'll email {email} if a spot opens up.
Placeholders: {email}.
addToCalendarAdd to calendar
googleCalendarGoogle Calendar
icsCalendarApple or Outlook
manageChange or cancel your RSVP
badgeRSVP by WhoComing
badgePitchRunning your own event? Collect RSVPs free.
errAlreadyRegisteredYou're already on the list for this event. We've emailed your manage link again.
errCapacityReachedSorry, the last spot just went.
errRateLimitedToo many tries. Please wait a minute and try again.
errBotCheckFailedWe couldn't check that you're not a bot. Please try again.
errEventCancelledThis event was cancelled, so it can't take RSVPs.
errEventEndedThis event has ended, so it can't take RSVPs.
errTooManyGuestsThat's more guests than this event allows.
errNotOpenThis event isn't taking RSVPs right now.
errOriginNotAllowedThis website isn't set up to take RSVPs for this event.
errValidationPlease check your details and try again.
errGenericSomething went wrong. Please try again.

On this page