Socket
Book a DemoInstallSign in
Socket

@maggioli-design-system/mds-pref-language

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@maggioli-design-system/mds-pref-language

mds-pref-language is a web-component from Magma Design System, built with StencilJS, TypeScript, Storybook. It's based on the web-component standard and it's designed to be agnostic from the JavaScript framework you are using.

latest
npmnpm
Version
2.7.1
Version published
Maintainers
3
Created
Source

mds-pref-language

Properties

PropertyAttributeDescriptionTypeDefault
setsetSpecifies the language code based on HTML lang attribute A string representing the language version as defined in {@link https://datatracker.ietf.org/doc/html/rfc5646 RFC 5646: Tags for Identifying Languages (also known as BCP 47)}. Examples of valid language codes include "en", "en-US", "fr", "fr-FR", "es-ES", etc. Supported languages are Italiano, English, Español, ελληνικάstring'auto'
sizesizeSets the size of the component items nested inside it"md" | "sm" | undefinedundefined

Events

EventDescriptionType
mdsPrefChangeEmits when the component is triggeredCustomEvent<MdsPrefChangeEventDetail>
mdsPrefLanguageChangeEmits when the component changes the language selected from the click event of the dropdown list itemCustomEvent<MdsPrefLanguageEventDetail>

Methods

updateLang() => Promise<void>

Returns

Type: Promise<void>

Slots

SlotDescription
"default"Add mds-pref-language-item element/s.

Dependencies

Depends on

Graph

graph TD;
  mds-pref-language --> mds-text
  mds-pref-language --> mds-tab
  mds-pref-language --> mds-tab-item
  mds-pref-language --> mds-dropdown
  mds-tab-item --> mds-button
  mds-button --> mds-spinner
  mds-button --> mds-icon
  mds-button --> mds-text
  style mds-pref-language fill:#f9f,stroke:#333,stroke-width:4px

Built with love @ Gruppo Maggioli from R&D Department

FAQs

Package last updated on 04 Jul 2025

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