wedding-rsvp-rs/config.hjson.example

285 lines
10 KiB
Plaintext
Raw Permalink Normal View History

{
# Strings within { and } in message strings are replaced by variables. Uppercase strings
# within < and > need to be replaced by the user in this configuration file.
# Specify settings for email to sent to guests
# The script assumes that smtp_username is a full e-mailaddress, since it will send
# the confirmation to this address.
email_credentials: {
smtp_server: "<SERVER>",
smtp_name: "<NAME WHICH WILL SIGN THE EMAILS>",
smtp_username: "<USERNAME>",
smtp_password: "<PASSWORD>",
},
# How many seconds must a user wait before he may send another e-mail?
spam_wait: 300,
######################################################################
# Strings to display
#
# Multiple languages may be defined. It is possible to map different TLDs
# to different languages. In the case below, .nl is matched to nl (Dutch) and
# .de is matched to de (German). The default language is nl (Dutch).
######################################################################
default_lang: nl,
tld_mapping: {
nl: "nl",
de: "de",
com: "en",
},
languages: {
en: {
# Email which will be sent to a guest which will attend
"attending_email": {
"subject": "You RSVPed to our wedding!",
"message":
'''
Hi {name}!
<br /><br />
Thanks for letting us know that you will attend to our wedding.
...
''',
# ICS File to sent with email
"attachment": "<ATTACHMENT>.ics",
},
"not_attending_email": {
"subject": "We received your message :-(",
"message":
'''
Hi {name}!
<br /><br />
Bummer! You can't attend our wedding.
<br /><br />
In case you get a free slot in your calendar after all, you are of course still welcome to join us! If that would be the case, please fill out the contact form again.
<br /><br />
Warm regards,
<br /><br />
...
''',
# ICS File to sent with email
"attachment": "",
},
# Text in form
"form": {
"title": "<NAME_1> & <NAME_2> Wedding",
"h1": "Let us know if you will join!",
"h2": "If you can't come, we would like to know as well.",
"name": "Name",
"email": "Email address",
"num_guests": "Number of guests",
"cant_come": "Unfortunately, I can't come",
"one_guest": "1 guest",
"two_guest": "2 guests",
"three_guest": "3 guests",
"four_guest": "4 guests",
"five_guest": "5 guests",
"submit": "Let us know!",
"additional_info": "Is there something particular we need to know (for example, will you join us later or do you have allergies)?"
"name_error": "Please state a name",
"email_error": "Please state a valid email",
"guest_error": "Select number of guests"
},
# Text on page that thanks user for e-mail
"thanks": {
"title": "<NAME_1> & <NAME_2> Wedding",
"h1": "Thanks {name}!",
"message": "We received your message and sent you an email with some additional information.",
},
# Text on page that tells user that too many e-mails were sent from his IP
"spam": {
"title": "<NAME_1> & <NAME_2> Wedding",
"h1": "Oops ⁠— excuse us!",
"message": "Apparently, you already sent a message less than <NUMBER OF MINUTES> minutes ago. Wait at least <NUMBER OF MINUTES> minutes before attempting to sent another message. Unfortunately, we had to add this feature to our website to protect ourselves from spam. Do you think this is not right? Please send an email to <EMAILADDRESS>.",
},
# Text on page that tells user that something went wrong while sending the email
"email_issue": {
"title": "<NAME_1> & <NAME_@> Wedding",
"h1": "Something went wrong!",
"message": "The email could not be sent. The reason for this could be that you provided an invalid email address, that the email address couldn't be recognized as such, or because the receiving email service rejected us. Please shoot us an email at <EMAILADDRESS>. Sorry for the inconvenience!",
}
},
nl: {
# Email which will be sent to a guest which will attend
"attending_email": {
"subject": "Je hebt je aangemeld voor onze bruiloft!",
"message":
'''
Hoi {name}!
<br /><br />
Dankjewel voor het ons te laten weten of je naar onze bruiloft komt.
...
''',
# ICS File to sent with email
"attachment": "<ATTACHMENT>.ics",
},
"not_attending_email": {
"subject": "We hebben je bericht ontvangen :-(",
"message":
'''
Hoi {name}!
<br /><br />
Wat jammer dat het je/jullie niet lukt om erbij te zijn!
<br /><br />
Mocht de situatie toch nog veranderen, ben je/zijn jullie natuurlijk van harte welkom om alsnog langs te komen. Vul in dat geval het contact formulier opnieuw in om ons hiervan op de hoogte te stellen.
<br /><br />
Groetjes,
<br /><br />
Dennis en Lisanne
''',
# ICS File to sent with email
"attachment": "",
},
# Text in form
"form": {
"title": "<NAME_1> & <NAME_2> Bruiloft",
"h1": "Vertel ons of je ook komt!",
"h2": "Als je helaas niet komt, horen wij dit ook graag.",
"name": "Naam",
"email": "E-mailadres",
"num_guests": "Aantal gasten",
"cant_come": "Ik ben helaas verhinderd",
"one_guest": "1 gast",
"two_guest": "2 gasten",
"three_guest": "3 gasten",
"four_guest": "4 gasten",
"five_guest": "5 gasten",
"submit": "Laat ons iets weten!",
"additional_info": "Is er iets wat we moeten weten (kom je bijvoorbeeld later of heb je allergiën?"
"name_error": "Vul aub een naam in",
"email_error": "Vul aub een geldig adres in",
"guest_error": "Selecteer aantal gasten"
},
# Text on page that thanks user for e-mail
"thanks": {
"title": "<NAME_1> & <NAME_2> Bruiloft",
"h1": "Dankjewel {name}!",
"message": "We hebben je bericht ontvangen en hebben je een e-mail met meer informatie gestuurd.",
},
# Text on page that tells user that too many e-mails were sent from his IP
"spam": {
"title": "<NAME_1> & <NAME_2> Bruiloft",
"h1": "Oops ⁠— sorry voor het ongemak!",
"message": "Het lijkt erop dat je minder dan <NUMBER OF MINUTES> minuten geleden al eens een bericht verstuurd hebt via deze pagina. Wacht tenminste <NUMBER OF MINUTES> minuten voordat je nog een bericht verstuurd. We moesten deze bescherming helaas op de website zetten ter protectie tegen spam. Denk je dat dit niet klopt? Stuur dan even een e-mail naar <EMAILADDRESS>.",
},
# Text on page that tells user that something went wrong while sending the email
"email_issue": {
"title": "<NAME_1> & <NAME_@> Bruiloft",
"h1": "Iets ging er mis!",
"message": "Het is niet gelukt de e-mail te versturen. Dit kan komen omdat het e-mailadres wat je opgegeven hebt niet geldig was, het niet gelukt is het te herkennen, of omdat de ontvangende e-mailservice de e-mail heeft afgewezen. We zouden het fijn vinden als je ons alsnog een berichtje stuurt via <EMAILADDRESS>. Sorry voor het ongemakt!",
}
},
de: {
# Email which will be sent to a guest which will attend
"attending_email": {
"subject": "Du hast dich angemeldet zu unserer Hochzeit!",
"message":
'''
Hi {name}!
Danke dass du uns hast wissen lassen ob du auch kommst!
...
''',
# ICS File to sent with email
"attachment": "<ATTACHMENT>.ics",
},
"not_attending_email": {
"subject": "Wir haben deine Nachricht empfangen :-(",
"message":
'''
Hi {name}!
<br /><br />
Schade, dass du nicht kommen kannst!
<br /><br />
Wenn sich deine Situation ändern würde, und du trotzdem Zeit hättest, bist du natürlich noch immer herzlich Wilkommen. In diesem Fall würden wir dich jedoch bitten, das Kontaktformular neu auszufüllen.
<br /><br />
Liebe Grüße,
<br /><br />
...
''',
# ICS File to sent with email
"attachment": "",
},
# Text in form
"form": {
"title": "<NAME_1> & <NAME_2> Hochzeit",
"h1": "Erzähl uns, ob du auch kommst!",
"h2": "Wenn du leider nicht kannst, erfahren wir das auch gerne.",
"name": "Name",
"email": "E-Mail-Adresse",
"num_guests": "Anzahl der Gäste",
"cant_come": "Ich kann leider nicht kommen",
"one_guest": "1 Gast",
"two_guest": "2 Gäste",
"three_guest": "3 Gäste",
"four_guest": "4 Gäste",
"five_guest": "5 Gäste",
"submit": "Formular absenden!",
"additional_info": "Gibt es zusätzliche Sachen die wir wissen müssen (kommst du zum Beispiel später oder hast du Allergien)?"
"name_error": "Bitte Namen ergänzen",
"email_error": "Bitte gültige Adresse ergänzen",
"guest_error": "Bitte Anzahl Gäste angeben"
},
# Text on page that thanks user for e-mail
"thanks": {
"title": "<NAME_1> & <NAME_2> Hochzeit",
"h1": "Danke {name}!",
"message": "Wir haben deine Nachricht empfangen und haben dir eine E-Mail mit mehr Informationen zukommen lassen.",
},
# Text on page that tells user that too many e-mails were sent from his IP
"spam": {
"title": "<NAME_1> & <NAME_2> Hochzeit",
"h1": "Oops ⁠— entschuldigung für die Unannehmlichkeiten!,"
"message": "Es sieht danach aus, dass du in den vergangenen <NUMBER OF MINUTES> Minuten versucht hast, mehrere Nachrichten über diese Website zu schicken. Warte bitte wenigstens <NUMBER_OF_MINUTES> Minuten, vor dass du es nochmal versuchst. Wir mussten dies leider in die Seite mit aufnehmen, als Schutz gegen Spam. Glaubst du, dass diese Blockade unzurecht ist? Schicke uns dann eine E-Mail an <EMAILADDRESS>.",
},
# Text on page that tells user that something went wrong while sending the email
"email_issue": {
"title": "<NAME_1> & <NAME_2> Hochzeit",
"h1": "Da ist etwas schief gelaufen!",
"message": "Leider ist es nicht gelungen die E-Mail zu verschicken. Der Grund kann sein, dass es keine gültige E-Mail-Adresse war, ich die Addresse nicht erkannt habe, oder weil der empfangende E-Mail-Service die Nachricht nicht angenommen hat. Es wäre gut, wenn du uns die Nachricht direkt an <EMAILADDRESS> schickst. Entschuldigung für die Unannehmlichkeiten!",
}
}
}
}