Revision as of 02:13, April 14, 2018 by Bfriend (talk | contribs) (Default i18n JSON)
Jump to: navigation, search

Localization

Customer Defined Strings

You can define string key names and values to replace UI strings in CLick to Call. There are no format restrictions on custom message keys. The purpose of this feature is to allow localization for the User Interface.

Usage

'clicktocall' namespace should be used when defining localization strings for Click to Call 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.

Default i18n JSON

{
	"en": {
		"clicktocall": {
			"Title": "Click to Call",
			"FirstName": "First Name",
			"PlaceholderRequired": "Required",
			"PlaceholderOptional": "Optional",
			"LastName": "Last Name",
			"PhoneNumber": "Phone",
			"WaitTime": "Wait Time",
			"FormCancel": "Cancel",
			"FormSubmit": "Request a number",
			"PhoneLabel": "Dial in now",
			"AccessLabel": "Access Code",
			"ExpireLabel": "Number Expires in",
			"DisplayClose": "Close",
			"NetworkFail": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
			"NetworkRetry": "OK",
			"InvalidAccept": "OK",
			"PhoneExpired": "Phone number has expired!",
			"PhoneReRequest": "Request a new number"
		}
	}
}
Comments or questions about this documentation? Contact us for support!