i have a site that uses globalize3 gem (https://github.com/svenfuchs/globalize3) and i'm currently adding the Tire gem to make site search.
How do i do to Index a table translations depending on the actual locale? right now the model that gets indexed only does with the default locale.
You'd have to index all the translations:
This can become cumbersome if you support a lot of languages for a lot of attributes, you might have to resort to meta-programming:
I didn't test the above code, it's just to give an idea, so make sure you understand it and it works before using it in your project, otherwise BAD THINGS WILL HAPPEN™.