fix i18n deprecation warning

This fixes an i18n deprecation warning while running tests.