I decided to internationalize one of my apps. Because i don’t remember the structure in which i should add view translations(the ones starting with dots, eg.: t('.greeting')) i wanted to take advantage of rails internationalize errors which always tell you in which structure you should add the new translation:

But instead of the one above i got this:

WTF?! This should be shown only in production.
Then i did the following:
And spend around 40 minutes on these.. :(
Ok, maybe time to read the error backtrace? :D

Oh god, really?!:

Right there on top of it all. It’s just i didn’t read it
After i decided to internationalize, i created empty yaml config/locales/cs.yml file. Turns out it takes down whole Rails :)
Lesson learned? Always read the fucking error message. If only this didn’t happen to me so many times already. And it isn’t just me. I wonder why we always take the more frustrating way of googling instead of step back, read the error message and think about it a bit.