Client RuntimeClient Browser Script

JavaScript integration (LiveJS)

Install the dashboard-generated script and check the language switcher on your website.

Audience:Frontend Developers

Copy the entire JavaScript snippet from the MultiLipi dashboard for the domain you are connecting. Paste it in the site-wide <head> or the equivalent head-code setting in your CMS, then publish the site.

The runtime exposes helper methods on the global window.MultilipiTranslation instance.

Client JavaScriptjavascript
// Manually clear the persistent client translation cache
window.MultilipiTranslation.clearPersistentTranslationCache();

// Check if a specific language code uses Right-to-Left (RTL) script
const isArabicRTL = window.MultilipiTranslation.isLangRTL('ar'); // true

// Trigger dynamic RTL layout adjustment
window.MultilipiTranslation.applyRTL();

// Inject custom language-specific CSS dynamically
window.MultilipiTranslation.injectCSS('body { font-family: "Noto Sans JP", sans-serif; }');

Open the published site, choose an enabled language, and verify the text on more than one page. Adjust the switcher’s position and appearance in the dashboard.

Related Technical Guides & Next Steps

Need Architecture Guidance for Your Production Stack?

Our engineering team assists enterprise clients with custom reverse proxy configurations, edge caching strategies, and white-label deployments.

Open Console