Im trying to localize the labels for ActiveScaffold STI children. In development it works fine with just this:
es:
activerecord:
models:
rule: "Regla"
concrete_rule: "Regla puntual"
weekly_rule: "Regla semanal"
monthly_rule: "Regla mensual"
But in production it always takes the default locale set in application. I know this is an Activescaffold problem and I have solved it for another labels setting the translations inside the key active_scaffold
but it's not working for STI. Any help with this ?
EDIT:
I found where activescaffold gets the i18n translation but I still don't know how to make it to take the correct translation in a production environment.
new_sti_link.label = child.to_s.camelize.constantize.model_name.human