wb getUserLanguages leverages mw.config.get( 'wbUserSpecifiedLanguages' ) and falls back to mw.uls.getFrequentLanguageList() while termbox only makes use of the latter in CSR. In order to provide consistent and correctly user-tailored results in termbox we should change the implementation accordingly.
AC
- termbox CSR uses mw.config.get( 'wbUserSpecifiedLanguages' ) and falls back to mw.uls.getFrequentLanguageList() to determine user's preferred languages
Info
- termbox SSR already receives the (correct) result of LanguageFallbackChainFactory::newFromContext( OutputPage ) but CSR overwrites this with incorrectly tailored preferred languages when it comes into effect