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.localeis not text. It sets the language for dates (a BCP 47 tag such asfrores-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.
| Key | Default |
|---|---|
locale | (empty) Not text: the BCP 47 language for dates, such as fr. Empty means the page's lang. |
loading | Loading event |
rsvp | RSVP |
joinWaitlist | Join the waitlist |
countFirst | Be 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}. |
online | Online |
full | This event is full. |
fullWaitlistNote | It's full, but you can join the waitlist. We'll email you if a spot opens up. |
ended | This event has ended. |
cancelled | This event was cancelled. |
loadError | We couldn't load this event. |
notFound | We couldn't find this event. |
missingEvent | This RSVP widget is missing its event ID. |
retry | Try again |
formTitle | Your details |
name | Name |
email | |
guests | Bringing anyone? |
guestsNone | Just me |
guestsSome | Me + {n} Placeholders: {n}, the number of extra guests. |
chooseOne | Choose one |
optional | (optional) |
remember | Remember me on this device |
submit | Send RSVP |
submitWaitlist | Join the waitlist |
sending | Sending |
back | Back |
honeypot | Leave this empty Label of the hidden anti-spam field. Screen readers can reach it. |
needName | Please enter your name. |
needEmail | Please enter a valid email address. |
needField | Please fill this in. |
needTick | Please tick this box. |
fixErrors | Please check the highlighted fields. |
goingTitle | You're in |
goingBody | We sent the details to {email}. Placeholders: {email}. |
waitlistTitle | You're on the waitlist |
waitlistBody | We'll email {email} if a spot opens up. Placeholders: {email}. |
addToCalendar | Add to calendar |
googleCalendar | Google Calendar |
icsCalendar | Apple or Outlook |
manage | Change or cancel your RSVP |
badge | RSVP by WhoComing |
badgePitch | Running your own event? Collect RSVPs free. |
errAlreadyRegistered | You're already on the list for this event. We've emailed your manage link again. |
errCapacityReached | Sorry, the last spot just went. |
errRateLimited | Too many tries. Please wait a minute and try again. |
errBotCheckFailed | We couldn't check that you're not a bot. Please try again. |
errEventCancelled | This event was cancelled, so it can't take RSVPs. |
errEventEnded | This event has ended, so it can't take RSVPs. |
errTooManyGuests | That's more guests than this event allows. |
errNotOpen | This event isn't taking RSVPs right now. |
errOriginNotAllowed | This website isn't set up to take RSVPs for this event. |
errValidation | Please check your details and try again. |
errGeneric | Something went wrong. Please try again. |