Translation engines
Advanced concepts
In order to translate sentences properly, we are merging HTML nodes to keep words consistency. Weglot library is merging some nodes to avoid cutting your words and simplify your translation management.
Example
Nothing to merge:
No merge:
Merging:
Translation engine versions
A translation engine version is set for each Weglot project. Old project has got translation engine 1, then 2. Now, all created project has translation engine version 3.
We need these version to not break already translated website. You can ask support to upgrade a translation engine version for a project if you need this, but it's at your own risks.
Here you can find all merging tags by translation engine version:
Version 1
No merging tag.
Version 2
ABBR
ACRONYM
B
BDO
BIG
CITE
EM
I
KBD
Q
SMALL
STRONG
SUB
SUP
U
Version 3 (project created since April 2019, 4th)
A
BDI
BR
DEL
DFN
INS
S
SPAN
Add extra merged nodes
With global option
Weglot initialization snippet has an option to select your own merged nodes, in addition to those you have on your current version.
Example, in translation engine version 3:
With HTML attribute
Add a data-wg-merge
attribute to elements you want to merge.
Last updated