Language
Language
The widget has support for localisation via the locale
config. You can provide
a locale string, for example, en-GB
, where the first two lowercase letters
define the languages code (ISO 639-1 format) and the second two capitalized
letters define the country code (ISO 3166-1 alpha-2 standard). This enables the
widget to provide different translations for the same language across different
regions.
The frontend team manage the default translation files. If you want another
locale to be added please request this in the #talk-to-frontend
channel. You
will need to provide translations for all the properties in the object below.
If no locale is provided in the config the widget will default to using en-GB
.
Currently supported locales are:
- en-GB // British English
- en-US // American English
- nl-NL // Dutch
- de-DE // German
- es-ES // Spanish
- fr-FR // French
- js-JP // Japanese
- sv-SE // Swedish
- pt-PT // Portuguese
- no-NO // Norwegian
- it-IT // Italian
- da-DK // Danish
- pl-PL // Polish
- fi-FI // Finnish
- lt-LT // Lithuanian
- lv-LV // Latvian
- ro-RO // Romanian
- sk-SK // Slovak
- et-EE // Estonian
- cs-CZ // Czech
{
"metadata": {
"id": "en-GB",
"title": "British English"
},
"sendingUserMessageText": "Sending...",
"dragAndDropMessage": "Drag and drop file here",
"header": "",
"chatInputPlaceholder": "Type message here",
"prechatButtonText": "Start Chat",
"prechatFormSelectPlaceholderText": "Select",
"messageLimitErrorText": "Oops, that message is too long",
"endChatHeader": "End Chat",
"endChatQuestion": "Are you sure you want to end chat?",
"endChatConfirmButton": "End chat",
"endChatCancelButton": "Cancel",
"carouselSelectionButtonText": "Select",
"idleTimeoutPrefixMessage": "Are you still there? Please send a message within",
"idleTimeoutSuffixMessage": "or this chat will time out",
"returnToMainMenu": "Return to main menu",
"messageFeedbackText": "Was this helpful?",
"userClosedChatMessageToAgent": "*** USER CLOSED CHAT. ***",
"listPopupSubmitButtonText": "Confirm",
"carouselMultiSelectButtonText": "Confirm your selection",
"fileUploadButtonText": "Upload file(s)",
"calendarSubmitButtonText": "Submit",
"agent": {
"agentEndedChat": "Agent left the chat",
"agentDisconnected": "The agent disconnected",
"agentJoined": "An agent joined the chat",
"namedAgentEndedChat": "left the chat",
"namedAgentDisconnected": "disconnected",
"namedAgentJoined": "joined the chat",
"agentTransferredChat": "You are being transferred to another agent",
"queueMessageWithPosition": "You are in a queue. Your position is",
"queueMessage": "You are in a queue.",
"agentJoining": "An agent is joining",
"couldNotConnect": "Could not connect to any agents",
"connectingToAnAgent": "Connecting you with an agent",
"reconnectingToAnAgent": "Attempting to reconnect to an agent",
"couldNotUploadFile": "There was a problem uploading your file. Please try again.",
"disconnectedReconnecting": "You were disconnected. Connecting you to another agent",
"automatedAgentMessage": "An agent will assist you shortly",
"chatEndedDueToInactivity": "Chat ended due to inactivity",
"chatConnectionLost": "Chat ended due to loss of connection",
"idleTimeoutWarningAgentMessage": "Are you still there?",
"switchedDevice": "Chat has been transferred to another device",
"timedOut": "Chat has ended due to timing out",
"connectError": "Failed to connect to an agent, please try again",
"outsideBusinessHours": "Live chat is unavailable as it's currently outside of our business hours",
"highDemand": "Live chat is unavailable due to high demand, please try again later"
},
"flow": {
"defaultErrorMessage": "We were unable to handle your request. Please try again"
},
"server": {
"defaultErrorHeading": "Oops! An error occurred!",
"errorMessageLine1": "Try restarting the chat below.",
"errorMessageLine2": "If the issue persists, please contact our support team.",
"restartButtonText": "Restart"
},
"fileUploadErrors": {
"virus": {
"title": "Oops!",
"descr": "This file may contain a virus or other malware and can't be uploaded. Try another file."
},
"tooLarge": {
"title": "Too Big!",
"descr": "Files that are more than 16MB cannot be uploaded. Try another file."
},
"generic": {
"title": "Oops!",
"descr": "There was a problem uploading this file. Try another file."
}
},
"newMessageNotifyText": "New Message",
"poweredByDigitalGenius": {
"poweredBy": "Powered by",
"logo": {
"digital": "Digital",
"genius": "Genius"
}
},
"csatLang": {
"ai": {
"csatNotice": null,
"csatTitle": "Please rate this chat"
},
"agent": {
"csatNotice": "Agent has ended the chat.",
"csatTitle": "Please rate this conversation"
},
"customer": {
"csatNotice": null,
"csatTitle": "Please rate this chat before you go"
},
"csatFeedbackTitle": "Thank you for sharing your feedback",
"ratingsText": null,
"csatFeedbackButtonText": "Submit",
"csatFeedbackTextareaPlaceholder": "Add comments here...",
"csatCommentsCancelButtonText": "No Thanks"
},
"internetConnectionLost": "Your internet connection appears to have been lost. Please check and try again.",
"internetConnectionRestored": "You're back online!",
"iframeTitles": {
"proactive": "DigitalGenius Chat Proactive App",
"proactiveScript": "DigitalGenius Chat Proactive Script",
"launcher": "DigitalGenius Chat Launcher App",
"launcherScript": "DigitalGenius Chat Launcher Script",
"widget": "DigitalGenius Chat App",
"widgetScript": "DigitalGenius Chat Script",
"attachmentsPreview": "DigitalGenius Attachments Preview"
},
"accessibilityLabels": {
"launcher": "Open chat widget",
"minimiseWidget": "Minimise chat widget",
"closeWidget": "Close chat widget",
"alertMessage": "Alert message with type",
"inputSubmit": "Submit",
"downloadImage": "Download image",
"carousel": "Product carousel",
"carouselPrevious": "Go to previous item",
"carouselNext": "Go to next item",
"chatForm": "Enter a message",
"chatFormSubmit": "Send message",
"chatFormUpload": "Upload a file",
"CSATTextarea": "Enter a comment",
"close": "Close",
"previewImage": "Open image preview",
"messageFeedbackPositive": "Mark message as helpful",
"messageFeedbackNegative": "Mark message as unhelpful",
"messageFeedbackReset": "Feedback provided. Select again to reset your feedback",
"backToBottom": "Back to bottom"
},
"damagedItemImageInfo": "Please upload a photo of the damaged item. We\"ll review and validate it for damages.",
"damagedItemImageError": "Oops! Your file is over 5MB. Try a smaller one.",
"damagedItemImageButtonText": "Add image",
"damagedItemImageAnotherButtonText": "Add another image",
"damagedItemImageConfirmButtonText": "Confirm",
"returnsGenericError": "Oops! An error occurred, please try again.",
"returnsQuantityLabel": "Qty:",
"returnsColourLabel": "Colour:",
"returnsPriceLabel": "Price:",
"returnsSizeLabel": "Size:",
"orderStatus": {
"processing": "Processing",
"in_transit": "In Transit",
"return_started": "Continue Return",
"start_return": "Start Return",
"return_submitted": "Return Submitted",
"return_processing": "Return Processing",
"delivered": "Delivered!",
"return_received": "Return Received",
"damaged": "Damaged",
"lost": "Lost"
},
"orderDetailsStep": {
"heading": "Order Details",
"returnReasonButtonText": "Reason for return",
"orderDateLabel": "Ordered on",
"orderNumberLabel": "Order #",
"returnDeadlineLabel": "Returnable until",
"returnLabel": "Return label",
"shippingInfo": "Shipping information"
},
"returnOptionsStep": {
"heading": "Return Options",
"optionsTitle": "Return options",
"storeCreditLabel": "Total store credit:",
"refundLabel": "Total refund:",
"replacementsLabel": "Total replacements:",
"policyAcknowledgement": "I acknowledge that I have read, understand, and agree to the return policy conditions.",
"additionalCreditBadgeText": "Additional credit!",
"additionalCreditFooterLabel": "Additional Credit"
},
"shippingInfoStep": {
"heading": "Shipping Information",
"subHeading": "How to send us your item(s)",
"successMessage": "Return Submitted! 🎉"
},
"importantInformationStep": {
"heading": "Important Information"
},
"returnDetailsStep": {
"heading": "Return Details",
"orderDateLabel": "Ordered on",
"orderNumberLabel": "Order #",
"returnDeadlineLabel": "Returnable until",
"returnLabel": "Return label",
"shippingInfo": "Shipping information",
"cancelReturnSuccess": "Return Cancelled!",
"returnedProductsLabel": "Returned products",
"returnableProductsLabel": "Returnable products",
"returnableProductsHeading": "More items from this order",
"cancelReturnTitle": "Cancel Return",
"cancelReturnDesc": "Changed your mind or have more items to return? Cancel your return submission here.",
"cancelReturnButtonText": "Cancel Return",
"cancelReturnModalHeading": "Cancel Return?",
"cancelReturnModalDesc": "Are you sure you want to cancel your return? You cannot undo this action.",
"cancelReturnCloseButtonText": "No Thanks",
"cancelReturnConfirmButtonText": "Cancel"
},
"productReturnDetailsStep": {
"heading": "Item Details",
"orderDetailsLabel": "Order details",
"returnOptionLabel": "Chosen return option",
"returnReasonLabel": "Reason for return",
"footerText": "Check out our returns policy for more info"
},
"dropOffLocationsStep": {
"heading": "Drop Off Locations",
"openingHours": "Opening hours",
"locationOpen": "Open",
"locationClosed": "Closed",
"locationClosingSoon": "Closing Soon",
"directionsButtonText": "Get Directions",
"searchPlaceholder": "Look up your postcode, city",
"preciseLocation": "Use precise location",
"miles": "miles",
"km": "km",
"monday": "Monday",
"tuesday": "Tuesday",
"wednesday": "Wednesday",
"thursday": "Thursday",
"friday": "Friday",
"saturday": "Saturday",
"sunday": "Sunday"
}
};
Updated 2 days ago