fix i18n deprecation warning