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",
			"Send": "Send",
			"Sent": "Your message has been sent...",
			"Close": "Close",
			"ConfirmCloseWindow": "Are you sure you want to close the Send Message widget?",
			"Cancel": "Cancel",
			"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."
			}
		}
	}
}

Feedback

Comment on this article:

blog comments powered by Disqus
This page was last modified on May 11, 2018, at 04:35.