MCPcopy Create free account
hub / github.com/codecombat/codecombat / addLocaleLoaded

Function addLocaleLoaded

app/core/store/index.js:25–29  ·  view source on GitHub ↗
(state, localeCode)

Source from the content-addressed store, hash-verified

23 addPageError(state, error) { return state.pageErrors.push(error); },
24 clearPageErrors(state) { return state.pageErrors = []; },
25 addLocaleLoaded(state, localeCode) {
26 const addition = {};
27 addition[localeCode] = true;
28 return state.localesLoaded = _.assign(addition, state.localesLoaded);
29 },
30 updateFeatures(state, features) { return state.features = features; }
31 },
32

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected