Instantly share code, notes, and snippets.

Embed
What would you like to do?
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