Jump to: navigation, search
(Created target blank page For Version: PSAAS:Julie)
 
(Update with the copy of version: Public)
Line 1: Line 1:
<!-- Creation of the target page -->
+
= Localization =
 +
 
 +
{{NoteFormat|For information on how to setup localization, please refer to the  [[GWCInternat|Localization Guide]]|1}}
 +
 
 +
==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==
 +
<source lang='javascript'>{
 +
"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"
 +
}
 +
}
 +
}</source>
 +
 
 +
[[Category:V:PSAAS:Julie]]

Revision as of 16:59, June 7, 2019

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!