MCPcopy Index your code
hub / github.com/github/docs / getUIData

Function getUIData

lib/get-data.js:78–82  ·  view source on GitHub ↗
(langCode)

Source from the content-addressed store, hash-verified

76// Doesn't need to be memoized because it's used by another function
77// that is memoized.
78const getUIData = (langCode) => {
79 const fullPath = ['data', 'ui.yml']
80 const { dir } = languages[langCode]
81 return getYamlContent(dir, fullPath.join(path.sep))
82}
83
84export const getDataByLanguage = memoize((dottedPath, langCode) => {
85 if (!(langCode in languages))

Callers 1

get-data.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected