Localization
Important
For information on how to setup localization, please refer to the Localization section in the Deployment GuideUsage
'clicktocall' namespace should be used when defining localization strings for ClickToCall 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": "ClickToCall",
"FirstName": "First Name",
"PlaceholderRequired": "Required",
"PlaceholderOptional": "Optional",
"LastName": "Last Name",
"PhoneNumber": "Phone",
"WaitTime": "Wait Time",
"FormCancel": "Cancel",
"AriaFormCancel": "Cancel",
"FormSubmit": "Request a number",
"AriaFormSubmit": "Request a number",
"PhoneLabel": "Dial in now",
"AriaPhoneTitle": "Opens the phone application",
"AccessLabel": "Access Code",
"ExpireLabel": "Number Expires in",
"AriaExpireLabel": "Number Expires in Timer",
"DisplayClose": "Close",
"AriaDisplayClose": "Close",
"NetworkFail": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
"NetworkRetry": "OK",
"AriaNetworkRetry": "OK",
"InvalidAccept": "OK",
"AriaInvalidAccept": "OK",
"PhoneExpired": "Phone number has expired!",
"PhoneReRequest": "Request a new number",
"AriaPhoneReRequest": "Request a new number",
"LocalFormValidationEmptyPhoneNumber": "Please enter a phone number",
"ConfirmCloseWindow": "You have unsubmitted form data. Are you sure you want to quit?",
"AriaConfirmCloseCancel": "No",
"ConfirmCloseCancel": "No",
"AriaConfirmCloseConfirm": "Yes",
"ConfirmCloseConfirm": "Yes",
"AriaWindowLabel": "Click To Call Window",
"AriaMaximize": "Click To Call Maximize",
"AriaMinimize": "Click To Call Minimize",
"AriaClose": "Click To Call Close"
}
}
}
This page was last edited on April 1, 2020, at 00:00.
Comments or questions about this documentation? Contact us for support!