From c1dbb13eacf0e579f351a46c9ee2ec845ae0cc2d Mon Sep 17 00:00:00 2001 From: Sameer Rahmani Date: Tue, 1 Dec 2015 19:19:44 +0330 Subject: debug_missing_translation configuration added to action_view `I18n.translate` helper will wrap the missing translation keys in a tag only if `debug_missing_translation` configuration has a truthy value. Default value is `true`. For example in `application.rb`: # in order to turn off missing key wrapping config.action_view.debug_missing_translation = false --- guides/source/configuring.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source/configuring.md') diff --git a/guides/source/configuring.md b/guides/source/configuring.md index ba2fb4c1cf..5f4fd0f31b 100644 --- a/guides/source/configuring.md +++ b/guides/source/configuring.md @@ -461,6 +461,8 @@ encrypted cookies salt value. Defaults to `'signed encrypted cookie'`. * `config.action_view.automatically_disable_submit_tag` determines whether submit_tag should automatically disable on click, this defaults to true. +* `config.action_view.debug_missing_translation` determins whether to wrap the missing translations key in a `` tag or not. This defaults to true. + ### Configuring Action Mailer There are a number of settings available on `config.action_mailer`: -- cgit v1.2.3