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

Function getContentDescription

ozaria/site/store/BaseCurriculumGuide.js:120–130  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 },
119
120 getContentDescription () {
121 return (content) => {
122 if (!content) {
123 return ''
124 }
125
126 return utils.i18n((content?.documentation?.specificArticles || []).find(({ name }) => name === 'Learning Goals'), 'body') ||
127 utils.i18n(content, 'description') ||
128 ''
129 }
130 },
131
132 getSelectedLanguage (state, language) {
133 return state.selectedLanguage

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected