diff --git a/config/i18n.cr b/config/i18n.cr index 6b2bcaa..0edd177 100644 --- a/config/i18n.cr +++ b/config/i18n.cr @@ -6,7 +6,9 @@ private struct I18nAdapter include Rex::Adapter def translate(text : String | Symbol, **named_args) : String - I18n.t(text, **named_args) + LuckyEnv.production? ? + I18n.t(text, **named_args) : + I18n.t!(text, **named_args) end def localize(value, *args) : String