We define the translation operator $T_a\in\mathrm{End}(\mathscr C(\mathbb R^d))$, with $a\in\mathbb R^d$, as (ref.1) $$ (T_a\phi)(x):=\phi(x-a)\tag3 $$
Note that a very similar computation shows that both $S_1$ and $S_2$ are invariant under Lorentz transformations $T_\Lambda\in\mathrm{End}(\mathscr C(\mathbb R^d))$, with $\Lambda\in\mathrm{SO}(1,d-1)$, defined in the obvious way: $(T_\Lambda\phi)(x):=\phi(\Lambda x)$. Here, and as before, it proves essential that $\mathrm dx$ is Poincaré invariant (indeed, it's the Haar measure of $\mathrm{ISO}(1,d-1)$), and that $x\mapsto \Lambda x+a$ is one-to-one over the integration region, $\mathbb R^d$.
But this doesn't mean that $\mathrm dx$ transforms under $T_a,T_\Lambda$. Symmetry transformations are defined at the level of the field $\phi$, with no reference to $\mathrm dx$. Indeed, the definition of invariance $S[T\phi]=S[\phi]$ is quite general, and it is not limited to local functionals: $S[\phi]$ could be any functional, not necessarily given by an integral. The volume form $\mathrm dx$ doesn't transform under symmetry operations (well, people sometimes define things differently, but the formulation above is IMHO the most clear and general one, and the one most people use nowadays)1, and neither does $x$. The "arrows and primes" notation $\phi\to\phi'$ can be ambiguous and imprecise. If you stick to well-defined operations, the picture is rather clear.
Finally, it bears mentioning that usually $\mathcal M$ is a homogeneous space for some Lie group $G$; in which case we say that $S$ is invariant under $G$. If $G$ is connected and compact, then we can reconstruct it from its algebra $\mathfrak g=\mathrm T_1G$ by means of the exponential map. This algebra is generated by $\delta$, and therefore quasi-symmetry implies symmetry, and vice-versa. If $\exp$ is not surjective, then quasi-symmetry is truly weaker than symmetry.
References:
- Bogolubov, Logunov, Oksak, Todorov - General principles of quantum field theory, §7.1.C.
1: Here we are advocating for a passive point of view, as opposed to an active one. Internal transformations are always passive, so it is convenient to regard external ones as passive to, so as to have a uniform framework. It appears that the books OP is following introduce a mixed point of view, where both the fields and the spacetime point are allowed to vary, if somewhat redundantly. The passive point of view is, IMHO, the most general and clear one, and the one most people use nowadays.