Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@dbp-toolkit/language-select

Package Overview
Dependencies
Maintainers
3
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dbp-toolkit/language-select

You can install this component via npm:

  • 0.3.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

Language Select Web Component

You can install this component via npm:

npm i @dbp-toolkit/language-select

Usage

<dbp-language-select></dbp-language-select>
<script type="module" src="node_modules/@dbp-toolkit/language-select/dist/dbp-language-select.js"></script>

Or directly via CDN:

<dbp-language-select></dbp-language-select>
<script type="module" src="https://unpkg.com/@dbp-toolkit/language-select@0.2.2/dist/dbp-language-select.js"></script>

Attributes

  • lang (optional, default: de): set to de or en for German or English (note that it will be shown the other way around to make it easier to switch to a different language)
    • example <dbp-language-select lang="de"></dbp-language-select>

Emitted attributes

The component emits dbp-set-property events for these attributes:

  • lang to propagate a language change (possible values en, de)

Local development

# get the source
git clone git@github.com:digital-blueprint/toolkit.git
cd toolkit/packages/language-select

# install dependencies
npm install

# constantly build dist/bundle.js and run a local web-server on port 8002 
npm run watch-local

# build local packages in dist directory
npm run build

FAQs

Package last updated on 12 Jun 2024

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc