MCPcopy
hub / github.com/orestbida/cookieconsent / updateDefaultLanguageOptions

Function updateDefaultLanguageOptions

playground/src/modules/language.js:167–178  ·  view source on GitHub ↗
(languages)

Source from the content-addressed store, hash-verified

165 * @param {string[]} languages
166 */
167export function updateDefaultLanguageOptions(languages) {
168 /**
169 * @type {HTMLOptionElement[]}
170 */
171 const options = defaultLanguageSelect.children;
172
173 for (const option of options) {
174 option.style.display = languages.includes(option.value)
175 ? ''
176 : 'none';
177 }
178}
179
180/**
181 * @param {boolean} found

Callers 2

translations.jsFile · 0.90
language.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…