This question is related to this Noether's theorem under arbitrary coordinate transformation and this Transformation of $d^4x$ under translation disregarded?
To proof Noether's theorem every text book that i know assumes that the variation of the action under the trasformation $x\mapsto x^\prime$is given by
$$\delta S=\int \mathscr{L}'(\phi^\prime,\partial_\mu\phi^\prime)d^4x^\prime-\int \mathscr{L}(\phi,\partial_\mu\phi)d^4x$$
For me this variation should always be zero since this is just a change of variables so there is nothing new. Suppose that in one dimension flat space we have $\phi(x)=\sin(x)$ and our action is given by $$S=\int{\sin(x)dx}$$ under a trasnlation $x\mapsto x+a$ we should have $\phi(x) \mapsto \phi'(x)=\sin(x-a)$.
Under a change of coordinates $x\mapsto y=x+a$, $\phi(x) \mapsto \phi'(y)=\sin(y-a)$ , since $x$ and $y$ are dummy index the action is the same in both case.
Now assuming we have $\sqrt g= x^2$. Translating will give us an action
$$S=\int{ x^2\sin(x-a)dx}$$
But change of variables will give us an action $$S=\int{ (y-a)^2\sin(y-a)dx}$$ witch is different.
Shouldn't the variation of the action be written like this $$\delta S=\int \mathscr{L}'(\phi^\prime,\partial_\mu\phi^\prime)d^4x^-\int \mathscr{L}(\phi,\partial_\mu\phi)d^4x$$