How to change the default language on my website bot?
- Getting Started
- Bot Building
- Smart Agent Chat
- Conversation Design
-
Developer Guides
Code Step Integration Static Step Integration Shopify Integration SETU Integration Exotel Integration CIBIL integration Freshdesk KMS Integration PayU Integration Zendesk Guide Integration Twilio Integration Razorpay Integration LeadSquared Integration USU(Unymira) Integration Helo(VivaConnect) Integration Salesforce KMS Integration Stripe Integration PayPal Integration CleverTap Integration Fynd Integration HubSpot Integration Magento Integration WooCommerce Integration Microsoft Dynamics 365 Integration
- Deployment
- External Agent Tool Setup
- Analytics & Reporting
- Notifications
- Commerce Plus
- Troubleshooting Guides
- Release Notes
SDK also supports multi-language bots where the user can seamlessly switch between multiple languages.
The default language first loaded can be changed by adding the initialize-language
parameter
'initialize-language': 'hi'
Full Example:
<!DOCTYPE html> <html> <head> <title>Haptik JS SDK Multi Language Demo</title> <meta charset="UTF-8"> <meta content="width=device-width; initial-scale=1.0;" name="viewport"> </head> <body> <div style="width: 100%; padding-top: 100px;"> <div style="max-width: 7000px; margin: 0 auto; padding: 0 40px; text-align: left;"> <h4>Haptik JS SDK</h4> </div> </div> </body> <script type="text/javascript"> window.haptikInitSettings = { "business-id": "<business-id>", "client-id": "<client-id>", "base-url": "<base-url>", 'initialize-language': 'hi' }; </script> <script type="text/javascript" charset="UTF-8" src="https://toolassets.haptikapi.com/platform/javascript-xdk/production/loader.js"></script> </html>