build fix. follow up to 174c9f0df39cd338a4871f82794256cc64f68a81
refactor, extract `with_locale` helper.