(Created target blank page For Version: PSAAS:Julie) |
(Automated save: adding PEC_Migrated template.) |
||
Line 1: | Line 1: | ||
− | <! | + | = Localization = |
+ | |||
+ | {{Template:PEC_Migrated}} | ||
+ | |||
+ | |||
+ | |||
+ | {{NoteFormat|For information on how to setup localization, please refer to the [[GWCInternat|Localization Guide]]|1}} | ||
+ | |||
+ | ==Usage== | ||
+ | 'callback' namespace should be used when defining localization strings for Callback 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": { | ||
+ | "callback": { | ||
+ | "CallbackTitle": "Receive a Call", | ||
+ | "CancelButtonText": "Cancel", | ||
+ | "ConfirmButtonText": "Confirm", | ||
+ | "CallbackPlaceholderRequired": "Required", | ||
+ | "CallbackPlaceholderOptional": "Optional", | ||
+ | "CallbackFirstName": "First Name", | ||
+ | "CallbackLastName": "Last Name", | ||
+ | "CallbackPhoneNumber": "Phone", | ||
+ | "CallbackQuestion": "When should we call you?", | ||
+ | "CallbackEmail": "Email", | ||
+ | "CallbackDayLabels": [ | ||
+ | "Sunday", | ||
+ | "Monday", | ||
+ | "Tuesday", | ||
+ | "Wednesday", | ||
+ | "Thursday", | ||
+ | "Friday", | ||
+ | "Saturday" | ||
+ | ], | ||
+ | "CallbackMonthLabels": [ | ||
+ | "Jan", | ||
+ | "Feb", | ||
+ | "Mar", | ||
+ | "Apr", | ||
+ | "May", | ||
+ | "Jun", | ||
+ | "Jul", | ||
+ | "Aug", | ||
+ | "Sep", | ||
+ | "Oct", | ||
+ | "Nov", | ||
+ | "Dec" | ||
+ | ], | ||
+ | "CallbackConfirmDescription": "You're booked in!", | ||
+ | "CallbackNumberDescription": "We will call you at the number provided:", | ||
+ | "CallbackNotes": "Notes", | ||
+ | "CallbackDone": "Close", | ||
+ | "CallbackOk": "Okay", | ||
+ | "CallbackCloseConfirm": "Are you sure you want to cancel arranging this callback?", | ||
+ | "CallbackNoButtonText": "No", | ||
+ | "CallbackYesButtonText": "Yes", | ||
+ | "CallbackWaitTime": "Wait Time", | ||
+ | "CallbackWaiTimeText": "min wait", | ||
+ | "CallbackOptionASAP": "As soon as possible", | ||
+ | "CallbackOptionPickDateTime": "Pick date & time", | ||
+ | "CallbackPlaceholderCalendar": "Select Date & Time", | ||
+ | "AriaMinimize": "Callback minimize", | ||
+ | "AriaMaximize": "Callback Maximize", | ||
+ | "AriaClose": "Callback close", | ||
+ | "Errors": { | ||
+ | "501": "Invalid parameters cannot be accepted, please check the supporting server API documentation for valid parameters.", | ||
+ | "503": "Missing apikey, please ensure it is configured properly.", | ||
+ | "1103": "Missing apikey, please ensure it is configured properly.", | ||
+ | "7030": "Please enter a valid phone number.", | ||
+ | "7036": "Callback to this number is not possible. Please retry with another phone number.", | ||
+ | "7037": "Callback to this number is not allowed. Please retry with another phone number.", | ||
+ | "7040": "Please configure a valid service name.", | ||
+ | "7041": "Too many requests at this time.", | ||
+ | "7042": "Office closed. Please try scheduling with in the office hours.", | ||
+ | "unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.", | ||
+ | "phoneNumberRequired": "Phone number is required." | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | }</source> | ||
+ | |||
+ | [[Category:V:PSAAS:Julie]] |
Latest revision as of 22:36, June 21, 2020
Localization
Important
This content may not be the latest Genesys Engage cloud content. To find the latest content, go to Genesys Engage cloud for Administrators.
Important
For information on how to setup localization, please refer to the Localization GuideUsage
'callback' namespace should be used when defining localization strings for Callback 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": {
"callback": {
"CallbackTitle": "Receive a Call",
"CancelButtonText": "Cancel",
"ConfirmButtonText": "Confirm",
"CallbackPlaceholderRequired": "Required",
"CallbackPlaceholderOptional": "Optional",
"CallbackFirstName": "First Name",
"CallbackLastName": "Last Name",
"CallbackPhoneNumber": "Phone",
"CallbackQuestion": "When should we call you?",
"CallbackEmail": "Email",
"CallbackDayLabels": [
"Sunday",
"Monday",
"Tuesday",
"Wednesday",
"Thursday",
"Friday",
"Saturday"
],
"CallbackMonthLabels": [
"Jan",
"Feb",
"Mar",
"Apr",
"May",
"Jun",
"Jul",
"Aug",
"Sep",
"Oct",
"Nov",
"Dec"
],
"CallbackConfirmDescription": "You're booked in!",
"CallbackNumberDescription": "We will call you at the number provided:",
"CallbackNotes": "Notes",
"CallbackDone": "Close",
"CallbackOk": "Okay",
"CallbackCloseConfirm": "Are you sure you want to cancel arranging this callback?",
"CallbackNoButtonText": "No",
"CallbackYesButtonText": "Yes",
"CallbackWaitTime": "Wait Time",
"CallbackWaiTimeText": "min wait",
"CallbackOptionASAP": "As soon as possible",
"CallbackOptionPickDateTime": "Pick date & time",
"CallbackPlaceholderCalendar": "Select Date & Time",
"AriaMinimize": "Callback minimize",
"AriaMaximize": "Callback Maximize",
"AriaClose": "Callback close",
"Errors": {
"501": "Invalid parameters cannot be accepted, please check the supporting server API documentation for valid parameters.",
"503": "Missing apikey, please ensure it is configured properly.",
"1103": "Missing apikey, please ensure it is configured properly.",
"7030": "Please enter a valid phone number.",
"7036": "Callback to this number is not possible. Please retry with another phone number.",
"7037": "Callback to this number is not allowed. Please retry with another phone number.",
"7040": "Please configure a valid service name.",
"7041": "Too many requests at this time.",
"7042": "Office closed. Please try scheduling with in the office hours.",
"unknownError": "Something went wrong, we apologize for the inconvenience. Please check your connection settings and try again.",
"phoneNumberRequired": "Phone number is required."
}
}
}
}
This page was last edited on June 21, 2020, at 22:36.
Comments or questions about this documentation? Contact us for support!