Jump to: navigation, search

Localization

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

Usage

'sendmessage' namespace should be used when defining localization strings for Send Message 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": {
		"sendmessage": {
			"SendMessageButton": "Send Message",
			"OK": "OK",
			"Title": "Send Message",
			"PlaceholderFirstName": "Required",
			"PlaceholderLastName": "Required",
			"PlaceholderEmail": "Required",
			"PlaceholderSubject": "Required",
			"PlaceholderTypetexthere": "Type your message here...",
			"FirstName": "First Name",
			"LastName": "Last Name",
			"Email": "Email",
			"Subject": "Subject",
			"Attachfiles": "Attach files",
			"AriaAttachfiles": "Attach files link. Open a file upload dialog.",
			"Send": "Send",
			"AriaSend": "Send Message",
			"Sent": "Your message has been sent...",
			"Close": "Close",
			"ConfirmCloseWindow": "Are you sure you want to close the Send Message widget?",
			"Cancel": "Cancel",
			"AriaMinimize": "Send Message Minimize",
			"AriaMaximize": "Send Message Maximize",
			"AriaWindowLabel": "Send Message Window",
			"AriaClose": "Send Message Close",
			"AriaCloseAlert": "Alert box is closed",
			"AriaEndConfirm": "Yes",
			"AriaEndCancel": "Cancel",
			"AriaOK": "OK",
			"AriaRemoveFile": "Remove file",
			"AriaFileIcon": "File",
			"AriaFileSize": "File Size",
			"Errors": {
				"102": "First Name required.",
				"103": "Last Name required.",
				"104": "Subject required.",
				"181": "Email address required.",
				"182": "Message text content required.",
				"connectionError": "Unable to reach server. Please try again.",
				"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
				"attachmentsLimit": "Total number of attachments exceeds limit: ",
				"attachmentsSize": "Total size of attachments exceeds limit: ",
				"invalidFileType": "Unsupported file type. Please upload images, PDFs, text files and ZIPs.",
				"invalidFromEmail": "Invalid email - From address.",
				"invalidMailbox": "Invalid email - To address."
			}
		}
	}
}
This page was last edited on April 1, 2020, at 00:11.
Comments or questions about this documentation? Contact us for support!