Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@cagov/ds-google-translate

Package Overview
Dependencies
Maintainers
7
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cagov/ds-google-translate

This custom element renders a link that when clicked places the google site translate widget into the element. This is setup this way because the google translate javascript is used rarely and slows down all page loads when loaded by default. This module

latest
npmnpm
Version
1.0.2
Version published
Maintainers
7
Created
Source

Google translate widget load on click

This custom element renders a link that when clicked places the google site translate widget into the element. This is setup this way because the google translate javascript is used rarely and slows down all page loads when loaded by default. This module uses a sessionStorage parameter to remember if the translate widget was activated and to load it automatically if it was previously.

This is used in the header of state sites like https://headless.cannabis.ca.gov

FAQs

Package last updated on 05 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts