Conform to latest Rails locale behaviors and silence the i18n deprecation warning.