Browser Language Detection

When enabled, the frontend JavaScript reads the visitor’s browser language and normalizes it to a 2-letter ISO code: navigator.language → “en-US” → “en” navigator.userLanguage → “fr-FR” → “fr” If the normalized code differs from your Default Site Language setting, the module can: How Language Preference is Persisted The module stores the selected language under the key hb_translate_lang in localStorage. If localStorage is […]

Popup Modes

CSS Popup (Recommended Default) Uses the module’s built-in overlay and modal CSS. No third-party library dependency. Recommended when your theme does not already load Magnific Popup globally. This is the safer, more universally compatible choice. Magnific Popup Uses the theme’s existing Magnific Popup library for the popup behavior. Falls back safely to the CSS popup […]

Admin Settings

All settings are accessible from Extensions > Extensions > Modules > Google Language Switcher. Setting Description Tag Status Enables or disables the module on the storefront. Required Default Site Language Base language code used as the pageLanguage for Google Translate. Example: en, fr, de. Values like en-gb are automatically normalized to en. Required Popup Mode Choose between css_popup (built-in, no dependencies) or magnific_popup (uses theme’s Magnific Popup library). […]

OpenCart 3x

Upload the extension files Upload all module files to your OpenCart installation, preserving the directory structure. Install via Extensions > Installer For a packaged release, go toExtensions > Installerand upload the package file. Refresh modifications Navigate toExtensions > Modificationsand clickRefreshto apply the OCMOD injection. Clear the theme cache Clear Twig cache from your OpenCart dashboard […]

About the plugin

Google Language Switcher for OpenCart allows visitors to translate your website into multiple languages using Google Translate, without installing multiple OpenCart language packs. The extension adds a modern popup-based language selector powered by Google Translate. It works with both single-language and multi-language OpenCart stores and can run alongside the native OpenCart language selector. It is […]

Local Storage Keys

The extension stores preferences in browser localStorage. cookieConsent Stores general consent state. Example: allcustomized cookiePreferences Stores detailed settings. Example: {“analytics”: true,”marketing”: false,”necessary”: true}