You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i18n is our main text driver and a great tool. Breaking our heads over how to implement a good, multi-language site search, it occurred to us that i18n already holds all our text and so in theory, this could work:
letsearchFor='red wine'letresultArray=this.$tf(searchFor)// finds array of objects with at least the found text and $route
Of course the issue is to get all the $routes for each call of $t() ...But I don't have good answer. Rendering all pages in background on first search would not work for very large sites...
The text was updated successfully, but these errors were encountered:
i18n is our main text driver and a great tool. Breaking our heads over how to implement a good, multi-language site search, it occurred to us that i18n already holds all our text and so in theory, this could work:
Of course the issue is to get all the $routes for each call of $t() ...But I don't have good answer. Rendering all pages in background on first search would not work for very large sites...
The text was updated successfully, but these errors were encountered: