The full-text may be used and/or reproduced, and given to third parties in any format or medium, without prior permission or charge, for personal research or study, educational, or not-for-pro t purposes provided that:• a full bibliographic reference is made to the original source • a link is made to the metadata record in DRO • the full-text is not changed in any way The full-text must not be sold in any format or medium without the formal permission of the copyright holders.Please consult the full DRO policy for further details. We consider the transport of conserved charges in spatially inhomogeneous quantum systems with a discrete lattice symmetry. We analyze the retarded two-point functions involving the charges and the associated currents at long wavelengths, compared to the scale of the lattice, and, when the dc conductivities are finite, extract the hydrodynamic modes associated with diffusion of the charges. We show that the dispersion relations of these modes are related to the eigenvalues of a specific matrix constructed from the dc conductivities and certain thermodynamic susceptibilities, thus obtaining generalized Einstein relations. We illustrate these general results in the specific context of relativistic hydrodynamics where translation invariance is broken using spatially inhomogeneous and periodic deformations of the stress tensor and the conserved Uð1Þ currents. Equivalently, this corresponds to considering hydrodynamics on a curved manifold, with a spatially periodic metric and chemical potential, and we obtain the dispersion relations for the heat and charge diffusive modes.