Localization of nonlocal gradients in various topologies