Rails config for raise on missing translations

Fixes #13196

Add a config to setup whether raise exception for missing translation or
not.