Localizzazione
Personalizzi i testi e le lingue di BookingJs: sovrascriva i testi predefiniti, inserisca variabili e aggiunga lingue personalizzate al widget di prenotazione.
Funzione PRO:
Personalizzi tutti i testi di BookingJs e aggiunga lingue personalizzate oltre alle cinque lingue predefinite. Disponibile nei piani Professional – Visualizzi i piani.
Panoramica
BookingJs supporta cinque lingue per impostazione predefinita: tedesco, inglese, francese, spagnolo e italiano. Può personalizzare tutti i testi e aggiungere lingue personalizzate.
Impostare la lingua
Impostare la lingua
timum.init({
ref: 'ihre-ressourcen-referenz',
culture: 'de' // de, en, fr, es, it
});
// Oppure come parametro URL
// ?culture=de
Rilevamento automatico:
Se non specificata esplicitamente, viene utilizzata la lingua del browser.
Personalizzare i testi
Non è necessario ridefinire l'intero oggetto di localizzazione. Indichi solo i testi che desidera modificare:
Sovrascrivere i testi
timum.init({
ref: 'ihre-ressourcen-referenz',
localization: {
de: {
booked_successfully_header: 'Vielen Dank für Ihre Buchung!',
booked_successfully_message: 'Wir haben Ihnen eine Bestätigung an {{mail}} gesendet.',
book_button: 'Jetzt Termin buchen',
product_selection_headline: 'Wählen Sie Ihre Terminart'
},
en: {
booked_successfully_header: 'Thank you for your booking!',
book_button: 'Book now'
}
}
});
Chiavi di localizzazione disponibili
Selezione della risorsa
| Chiave | Predefinito (DE) |
|---|---|
resource_selection_headline | Ressource wählen |
product_selection_headline | Terminart wählen |
Prenotazione riuscita
| Chiave | Predefinito (DE) |
|---|---|
booked_successfully_header | Termin gebucht |
booked_successfully_message | Sie erhalten eine E-Mail mit den Termindetails an {{mail}} |
requested_successfully_header | Termin angefragt |
requested_successfully_message | Sie erhalten eine E-Mail sobald der Termin bestätigt wurde. |
Annullamento
| Chiave | Predefinito (DE) |
|---|---|
canceled_successfully_header | Termin storniert |
cancel_button | Termin stornieren |
cancel_confirmation_question | Möchten Sie diesen Termin wirklich stornieren? |
Modulo
| Chiave | Predefinito (DE) |
|---|---|
book_button | Termin buchen |
first_name_label | Vorname |
last_name_label | Nachname |
email_label | |
phone_label | Telefon |
message_label | Nachricht |
Variabili nei testi
Può utilizzare variabili con {{variableName}}:
Variabili
localization: {
de: {
booked_successfully_message: 'Bestätigung an {{mail}} gesendet',
appointment_for: 'Termin für {{productName}} am {{date}}',
greeting: 'Hallo {{firstName}}'
}
}
Aggiungere una lingua personalizzata
Nuova lingua
timum.init({
ref: 'ihre-ressourcen-referenz',
culture: 'nl', // Olandese
localization: {
nl: {
resource_selection_headline: 'Kies een resource',
product_selection_headline: 'Kies een afspraaktype',
booked_successfully_header: 'Afspraak geboekt',
booked_successfully_message: 'U ontvangt een e-mail op {{mail}}',
book_button: 'Boek nu',
cancel_button: 'Annuleren',
first_name_label: 'Voornaam',
last_name_label: 'Achternaam',
email_label: 'E-mail',
phone_label: 'Telefoon',
message_label: 'Bericht'
// ... altre chiavi
}
}
});
Custom Field Labels
Anche le etichette dei campi modulo personalizzati vengono definite tramite la localizzazione:
Custom Field Labels
{
fields: {
companyName: {
type: 'text',
required: true
}
},
localization: {
de: {
field_companyName_label: 'Firmenname',
field_companyName_placeholder: 'Ihre Firma GmbH',
field_companyName_error: 'Bitte geben Sie einen Firmennamen an'
},
en: {
field_companyName_label: 'Company Name',
field_companyName_placeholder: 'Your Company Inc.',
field_companyName_error: 'Please enter a company name'
}
}
}
