Jump to: navigation, search
(Update with the copy of version: draft)
(Update with the copy of version: draft)
Line 37: Line 37:
 
"CalendarLabelToday": "Today",
 
"CalendarLabelToday": "Today",
 
"CalendarLabelTomorrow": "Tomorrow",
 
"CalendarLabelTomorrow": "Tomorrow",
"CalendarLabelMorning": "Morning",
 
"CalendarLabelAfternoon": "Afternoon",
 
"CalendarLabelEvening": "Evening",
 
 
"CalendarTitle": "Schedule a Call",
 
"CalendarTitle": "Schedule a Call",
 
"CalendarOkButtonText": "Okay",
 
"CalendarOkButtonText": "Okay",
"CalendarError": "Unable to fetch availability details."
+
"CalendarError": "Unable to fetch availability details.",
 +
"CalendarClose": "Cancel"
 
}
 
}
 
}
 
}

Revision as of 22:09, May 11, 2018

Localization

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

Usage

'calendar' namespace should be used when defining localization strings for Calendar 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": {
		"calendar": {
			"CalendarDayLabels": [
				"Sunday",
				"Monday",
				"Tuesday",
				"Wednesday",
				"Thursday",
				"Friday",
				"Saturday"
			],
			"CalendarMonthLabels": [
				"Jan",
				"Feb",
				"Mar",
				"Apr",
				"May",
				"Jun",
				"Jul",
				"Aug",
				"Sept",
				"Oct",
				"Nov",
				"Dec"
			],
			"CalendarLabelToday": "Today",
			"CalendarLabelTomorrow": "Tomorrow",
			"CalendarTitle": "Schedule a Call",
			"CalendarOkButtonText": "Okay",
			"CalendarError": "Unable to fetch availability details.",
			"CalendarClose": "Cancel"
		}
	}
}
Comments or questions about this documentation? Contact us for support!