Fixes deprecation warning related to I18n