useLanguage broken after move to kolibri-common
#12720
Labels
P0 - critical
Priority: Release blocker or regression
TAG: regression
Something that previously worked
Milestone
Observed behavior
The
useLanguages
module relies on theplugin_data
module, but in thekolibri-common
context, the languages property is not set, souseLanguages
is retruning empty values.Note that
useLanguages
is only really used in theuseBaseSearch
module and SearchChips.Perhaps
SearchChips
should also be moved into theuseBaseSearch
module folder inkolibri-common
?Errors and logs
…
Expected behavior
useLanguages
should return a map and array of available languagesUser-facing consequences
Currently,
SearchChips
relies onuseLangauges
to get the label value for a language (ie, usinglanguageMap
likelanguageMap['en']; // => "English"
.Steps to reproduce
Filter a search by Language on the Learn > Library page.
Context
0.18 /
develop
branchThe text was updated successfully, but these errors were encountered: