MCPcopy Index your code
hub / github.com/Maps4HTML/MapML.js / _setLocale

Method _setLocale

src/mapml-viewer.js:248–257  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

246 });
247 }
248 _setLocale() {
249 if (this.closest(':lang(fr)') === this) {
250 this.locale = M.options.localeFr;
251 } else if (this.closest(':lang(en)') === this) {
252 this.locale = M.options.localeEn;
253 } else {
254 // "browser" locale
255 this.locale = M.options.locale;
256 }
257 }
258 _initShadowRoot() {
259 if (!this.shadowRoot) {
260 this.attachShadow({ mode: 'open' });

Callers 1

connectedCallbackMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected