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",
			"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": "Close",
			"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": {
				"501": "Invalid parameters cannot be accepted, please check the supporting server API documentation for valid parameters.",
				"503": "Missing apikey, please ensure it is configured properly.",
				"1103": "Missing apikey, please ensure it is configured properly.",
				"7030": "Please enter a valid phone number.",
				"7036": "Callback to this number is not possible. Please retry with another phone number.",
				"7037": "Callback to this number is not allowed. Please retry with another phone number.",
				"7040": "Please configure a valid service name.",
				"7041": "Too many requests at this time.",
				"7042": "Office closed. Please try scheduling with in the office hours.",
				"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
				"phoneNumberRequired": "Phone number is required."
			}
		}
	}
}

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on September 26, 2018, at 11:45.