cvan / metropolis

an app store that works offline
http://metropolis.paas.allizom.org/
0 stars 1 forks source link

translate localised fields before indexing search #14

Open cvan opened 10 years ago

cvan commented 10 years ago

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.