Some books argue that typical coordinate transformations such as space translations and rotations are represented in quantum mechanics by unitary operators because the Wigner's theorem. However I do not find any clear proof of this. For instance, suppose 1D for the sake of simplicity, by definition spatial translations change the position operator as $$ \hat{x}\to \hat{x}'=\hat{x}+a $$ where $a$ is a constant.
Why this transformation satisfies the premises of the Wigner's theorem? Namely, bijectivity and preservation of absolute value of scalar products $|\langle \psi_1|\psi_2\rangle|=|\mbox{}'\langle \psi_1|\psi_2\rangle'|$.
More specifically, if $|x\rangle$ is a position eigenstate $\hat{x}|x\rangle=x|x\rangle$, then $|x\rangle$ is obviously an eigenstate of $\hat{x}'$ with eigenvalue $(x+a)$. Therefore a spatial translation change a position eigenstate as $$ |x\rangle\to |x\rangle'=|x+a\rangle. $$ However to check bijectivity and the condition on scalar products we need to obtain the transformation law for any state $$ |\psi\rangle=\int_{-\infty}^{\infty}\psi(x)|x\rangle. $$ Under linearity this state changes to $$ |\psi\rangle'=\int_{-\infty}^{\infty}\psi(x)|x\rangle'=\int_{-\infty}^{\infty}\psi(x)|x+a\rangle, $$ but we cannot assume linearity because we actually want to obtain it as a result of applying the Wigner's theorem.