name and description should be indexed in the user's current language before added to the search index. We need knowledge of the user's locale and utils.translate, so we could either pass in the locale and copy+paste the utils.translate function into the worker.js - or we could do the translations outside of the worker and pass in the translated objects.
name
anddescription
should be indexed in the user's current language before added to the search index. We need knowledge of the user's locale andutils.translate
, so we could either pass in the locale and copy+paste theutils.translate
function into theworker.js
- or we could do the translations outside of the worker and pass in the translated objects.