Skip to content

Instantly share code, notes, and snippets.

@Trolzie
Forked from laander/widget-language-example.htm
Last active June 6, 2018 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Trolzie/3d4e7d8a819930af6f27a8ce895c1b1b to your computer and use it in GitHub Desktop.
Save Trolzie/3d4e7d8a819930af6f27a8ce895c1b1b 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 = {
app_key: 'live_widget_key_yYXHsUurvCUctNYflzGDMqEJo6mol0Yo',
resources: [],
fullcalendar: {
locale: 'es'
},
ui: {
localization: {
timeDateFormat: false,
allocated_resource_prefix: 'for',
submit_button: 'Book it now!',
success_message: 'Thanks for booking!'
},
customer_fields: {
name: {
placeholder: 'Nombre'
}
}
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment