Jump to: navigation, search
(Update with the copy of version: draft)
(Update with the copy of version: draft)
Line 13: Line 13:
 
"callback": {
 
"callback": {
 
"CallbackTitle": "Receive a Call",
 
"CallbackTitle": "Receive a Call",
"CallbackTitleDescription": "Please fill out the following details.",
 
 
"CancelButtonText": "Cancel",
 
"CancelButtonText": "Cancel",
 
"ConfirmButtonText": "Confirm",
 
"ConfirmButtonText": "Confirm",
 +
"CallbackPlaceholderRequired": "Required",
 +
"CallbackPlaceholderOptional": "Optional",
 
"CallbackFirstName": "First Name",
 
"CallbackFirstName": "First Name",
"CallbackPlaceholderFirstName": "Required",
 
 
"CallbackLastName": "Last Name",
 
"CallbackLastName": "Last Name",
"CallbackPlaceholderLastName": "Required",
 
 
"CallbackPhoneNumber": "Phone",
 
"CallbackPhoneNumber": "Phone",
"CallbackPlaceholderPhoneNumber": "Required",
+
"CallbackQuestion": "When should we call you?",
 
"CallbackEmail": "Email",
 
"CallbackEmail": "Email",
"CallbackPlaceholderEmail": "Optional",
 
"CallbackPlaceholderNotes": "Optional",
 
"CallbackDateTime": "Date & Time",
 
"CallbackDateTimeDescription": "When should we call you? (Required)",
 
"CallbackTodayDate": "Today",
 
 
"CallbackDayLabels": [
 
"CallbackDayLabels": [
 
"Sunday",
 
"Sunday",
Line 51: Line 45:
 
"Dec"
 
"Dec"
 
],
 
],
"CallbackTimeAtText": "at",
+
"CallbackConfirmDescription": "You're booked in!",
"CallbackRadioButtonText": "As Soon As Possible",
+
"CallbackNumberDescription": "We will call you at the number provided:",
"CallbackBookedPhoneNumberLabel": "Phone",
 
"CallbackBookedDateTimeLabel": "Date & Time",
 
"CallbackBookedNotesLabel": "Optional Notes",
 
"CallbackBookedDescription": "You're booked in!",
 
 
"CallbackNotes": "Notes",
 
"CallbackNotes": "Notes",
 
"CallbackDone": "Done",
 
"CallbackDone": "Done",
Line 63: Line 53:
 
"CallbackNoButtonText": "No",
 
"CallbackNoButtonText": "No",
 
"CallbackYesButtonText": "Yes",
 
"CallbackYesButtonText": "Yes",
"CallbackPlaceholderCalendar": "Custom Date & Time",
+
"CallbackWaitTime": "Wait Time",
 +
"CallbackWaiTimeText": "min wait",
 +
"CallbackOptionASAP": "As soon as possible",
 +
"CallbackOptionPickDateTime": "Pick date & time",
 +
"CallbackPlaceholderCalendar": "Select Date & Time",
 +
"AriaMinimize": "Callback minimize",
 +
"AriaMaximize": "Callback Maximize",
 +
"AriaClose": "Callback close",
 
"Errors": {
 
"Errors": {
"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again."
+
"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
 +
"phoneNumberRequired": "Phone number is required."
 
}
 
}
 
}
 
}

Revision as of 22:04, May 11, 2018

Localization

Important
For information on how to setup localization, please refer to the Localization Guide

Usage

'callback' namespace should be used when defining localization strings for Callback plugin in your i18n JSON file.

In the example below, we demonstrate defining new strings for the 'en' (English) language. You may use any language codes you wish; there is no standard format. When selecting the active language in your configuration, you must match one of the language codes defined in your i18n JSON file. Please note that you must only define a language code once in your i18n JSON file. Inside each language object you should define new strings for each widget.

Example i18n JSON

{
	"en": {
		"callback": {
			"CallbackTitle": "Receive a Call",
			"CancelButtonText": "Cancel",
			"ConfirmButtonText": "Confirm",
			"CallbackPlaceholderRequired": "Required",
			"CallbackPlaceholderOptional": "Optional",
			"CallbackFirstName": "First Name",
			"CallbackLastName": "Last Name",
			"CallbackPhoneNumber": "Phone",
			"CallbackQuestion": "When should we call you?",
			"CallbackEmail": "Email",
			"CallbackDayLabels": [
				"Sunday",
				"Monday",
				"Tuesday",
				"Wednesday",
				"Thursday",
				"Friday",
				"Saturday"
			],
			"CallbackMonthLabels": [
				"Jan",
				"Feb",
				"Mar",
				"Apr",
				"May",
				"Jun",
				"Jul",
				"Aug",
				"Sep",
				"Oct",
				"Nov",
				"Dec"
			],
			"CallbackConfirmDescription": "You're booked in!",
			"CallbackNumberDescription": "We will call you at the number provided:",
			"CallbackNotes": "Notes",
			"CallbackDone": "Done",
			"CallbackOk": "Okay",
			"CallbackCloseConfirm": "Are you sure you want to cancel arranging this callback?",
			"CallbackNoButtonText": "No",
			"CallbackYesButtonText": "Yes",
			"CallbackWaitTime": "Wait Time",
			"CallbackWaiTimeText": "min wait",
			"CallbackOptionASAP": "As soon as possible",
			"CallbackOptionPickDateTime": "Pick date & time",
			"CallbackPlaceholderCalendar": "Select Date & Time",
			"AriaMinimize": "Callback minimize",
			"AriaMaximize": "Callback Maximize",
			"AriaClose": "Callback close",
			"Errors": {
				"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
				"phoneNumberRequired": "Phone number is required."
			}
		}
	}
}
Comments or questions about this documentation? Contact us for support!