Jump to: navigation, search
(Update with the copy of version: 8.5.0)
(Update with the copy of version: draft)
Line 1: Line 1:
 
= Localization =
 
= Localization =
== Strings ==
+
{{NoteFormat|For information on how to setup localization, please refer to the  [[GWCInternat|Localization Guide]]|1}}
{|
+
 
|-
+
==Usage==
! Name
+
'channelselector' namespace should be used when defining localization strings for ChannelSelector plugin in your i18n JSON file.
! Default
+
 
|-
+
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.
| Title
+
 
| 'Live Assistance'
+
==Example i18n JSON==
|-
+
<source lang='javascript'>{
| TitleDescription
+
"en": {
| 'Please choose how you'd like to get in touch'
+
"channelselector": {
|-
+
"Title": "Live Assistance",
| WaitTimeTitle
+
"SubTitle": "How would you like to get in touch?",
| 'Wait Time'
+
"WaitTimeTitle": "Wait Time",
|-
+
"AvailableTitle": "Available",
| AvailableTitle
+
"UnavailableTitle": "Unavailable",
| 'Available'
+
"CallbackTitle": "Receive a Call"
|-
+
}
| UnavailableTitle
+
}
| 'Unavailable'
+
}</source>
|-
 
| ChatTitle
 
| 'Web chat'
 
|-
 
| CallusTitle
 
| 'Call us'
 
|-
 
| CallbackTitle
 
| 'Receive a Call'
 
|-
 
|}
 
  
 
[[Category:V:PSAAS:Public]]
 
[[Category:V:PSAAS:Public]]

Revision as of 17:19, November 15, 2017

Localization

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

Usage

'channelselector' namespace should be used when defining localization strings for ChannelSelector 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": {
		"channelselector": {
			"Title": "Live Assistance",
			"SubTitle": "How would you like to get in touch?",
			"WaitTimeTitle": "Wait Time",
			"AvailableTitle": "Available",
			"UnavailableTitle": "Unavailable",
			"CallbackTitle": "Receive a Call"
		}
	}
}
Comments or questions about this documentation? Contact us for support!