Briefly, the generator of $x$-translations is more precisely the $x$-derivative $\frac{\partial}{\partial x}=i\frac{\hat{p}}{\hbar}=i\hat{k}$, the [wavenumber](https://en.wikipedia.org/wiki/Wavenumber) operator.