Jump to: navigation, search

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",
			"CallbackTitleDescription": "Please fill out the following details.",
			"CancelButtonText": "Cancel",
			"ConfirmButtonText": "Confirm",
			"CallbackFirstName": "First Name",
			"CallbackPlaceholderFirstName": "Required",
			"CallbackLastName": "Last Name",
			"CallbackPlaceholderLastName": "Required",
			"CallbackPhoneNumber": "Phone",
			"CallbackPlaceholderPhoneNumber": "Required",
			"CallbackEmail": "Email",
			"CallbackPlaceholderEmail": "Optional",
			"CallbackPlaceholderNotes": "Optional",
			"CallbackDateTime": "Date & Time",
			"CallbackDateTimeDescription": "When should we call you? (Required)",
			"CallbackTodayDate": "Today",
			"CallbackDayLabels": [
				"Sunday",
				"Monday",
				"Tuesday",
				"Wednesday",
				"Thursday",
				"Friday",
				"Saturday"
			],
			"CallbackMonthLabels": [
				"Jan",
				"Feb",
				"Mar",
				"Apr",
				"May",
				"Jun",
				"Jul",
				"Aug",
				"Sep",
				"Oct",
				"Nov",
				"Dec"
			],
			"CallbackTimeAtText": "at",
			"CallbackRadioButtonText": "As Soon As Possible",
			"CallbackBookedPhoneNumberLabel": "Phone",
			"CallbackBookedDateTimeLabel": "Date & Time",
			"CallbackBookedNotesLabel": "Optional Notes",
			"CallbackBookedDescription": "You're booked in!",
			"CallbackNotes": "Notes",
			"CallbackDone": "Done",
			"CallbackOk": "Okay",
			"CallbackCloseConfirm": "Are you sure you want to cancel arranging this callback?",
			"CallbackNoButtonText": "No",
			"CallbackYesButtonText": "Yes",
			"CallbackPlaceholderCalendar": "Custom Date & Time",
			"Errors": {
				"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again."
			}
		}
	}
}
This page was last edited on December 11, 2017, at 16:59.
Comments or questions about this documentation? Contact us for support!