fix i18n deprecation warning

this fixes deprecation warning while running tests.