Skip to content

Instantly share code, notes, and snippets.

@laander
Last active May 29, 2018 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save laander/1d7ec28320e098b8b2a296c60216734f to your computer and use it in GitHub Desktop.
Save laander/1d7ec28320e098b8b2a296c60216734f to your computer and use it in GitHub Desktop.
Booking.js widget full language localization
<div id="bookingjs"></div>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn.timekit.io/booking-js/v1/booking.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/fullcalendar/3.4.0/lang/es.js"></script>
<script>
window.timekitBookingConfig = {
widgetId: '6a6c24ce-41a6-4114-9c15-de9ec3d92630',
fullCalendar: {
locale: 'es'
},
localization: {
timeDateFormat: false,
strings: {
submitText: 'Enviar',
successMessageTitle: 'Gracias!',
successMessageBody: 'Se ha enviado una invitación a:<br /> %s <br /><br /> Por favor acepte la invitación para confirmar la reserva.',
timezoneHelperLoading: 'Cargando..',
timezoneHelperDifferent: 'Tu zona horaria es %s horas %s de %s (el calendario se muestra a tu hora local)',
timezoneHelperSame: 'Estás en la misma zona horaria que %s'
}
},
bookingFields: {
name: {
placeholder: 'Nombre'
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment