MCPcopy Create free account
hub / github.com/UI5/webcomponents / getLanguage

Function getLanguage

packages/base/src/config/Language.ts:47–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45 * @returns {string}
46 */
47const getLanguage = (): string | undefined => {
48 if (curLanguage === undefined) {
49 curLanguage = getSharedValue<string>("language") ?? getConfiguredLanguage();
50 }
51 return curLanguage;
52};
53
54/**
55 * Changes the current language, re-fetches all message bundles, updates all language-aware components

Callers

nothing calls this directly

Calls 1

getSharedValueFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…