internationalization - Troubleshoot i18n YAML in Rails the Easy Way -


i waste tons of time trying construct the proper yaml translating text , labels in rails.

is there easy way pinpoint path should use in yaml provide translation?

as example, using nested simple_form form erb:

<%= f.input :birth_date, as:'string' %> 

the label birth date , assuming coming model attribute.

when debug line , type f.object_name

=> "user_wizard[children_attributes]  

here's yaml

en-us:   simple_form:     labels:       user_wizard:         children_attributes:           birth_date: "name date or expected date" 

is there sure-fire way log, print, probe, watch, render or query give (or one) exact path need in situation? not simple_form or model attribute error messages, buttons, mailers, etc.

we have had tons of issues i18n key management well, that's why have decided go down different road , display whole key name, possibility edit in place well. feel solves problem of finding correct key name , filling it. check out our solution, phraseapp , our in-context editor.

to summarize: best thing might expose key name through code. have built our own solution, can little monkey patch i18n well.


Comments

Popular posts from this blog

Admob integration with pygame in android -

mod rewrite - Using "?" when rewriting the URL -

installer - what is Hex representation of MSIUSEREALADMINDETECTION? -