Jump to: navigation, search


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


'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": {
			"title": "Send Message",
			"SendMessageButton": "Send Message",
			"EmailOk": "OK",
			"EmailFormPlaceholderFirstName": "Required",
			"EmailFormPlaceholderLastName": "Required",
			"EmailFormPlaceholderEmail": "Required",
			"EmailFormPlaceholderSubject": "Required",
			"EmailFormPlaceholderTypetexthere": "Type your message here...",
			"EmailFormFirstName": "First Name",
			"EmailFormLastName": "Last Name",
			"EmailFormEmail": "Email",
			"EmailFormSubject": "Subject",
			"EmailFormAttachfiles": "Attach files",
			"EmailFormSend": "Send",
			"ConfirmCloseWindow": "Are you sure you want to close the <%GenesysWidget%> widget?",
			"SendMsgFormCancel": "Cancel",
			"SendMsgFormClose": "Close",
			"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.",
				"unknowError": "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 December 11, 2017, at 16:07.
blog comments powered by Disqus