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

Function getCurrentLanguageCode

src/utils/language.js:44–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

42 * @returns {string}
43 */
44export const getCurrentLanguageCode = () => {
45 return globalObj._state._currentLanguageCode || globalObj._state._userConfig.language.default;
46};
47
48/**
49 * Set language code

Callers 4

setLanguageFunction · 0.90
language.test.jsFile · 0.90
loadTranslationDataFunction · 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…