DRY localized labels set in the javascript