Rails config for raise on missing translations

Add a config to setup whether raise exception for missing translation or
not.

This is a [backport](https://github.com/rails/rails/pull/13832).