Base directives
HTML directives are used to configure the behavior of the translation
1/ Exclude directive
The exclude directive is used to exclude an element from translation. it will also exclude all child elements.
<div data-lw-exclude="true">
This text will not be translated
<div>Child elements will aslo be skipped from the translation process</div>
</div>
2/ Stack directive
The stacked directive is used to translate a block of text as a single unit. this is particularly useful for translating whole paragraphs, sections or even pages. We recommend to use it for blog posts or lengthy pages such as terms and conditions, privacy policy, etc.
<div data-lw-stack="UNIQUE_STACK_ID">
This text will be translated as a single unit
</div>
The stack ID must be unique for each stack, with no overlap possible
3/ ID directive
The ID directive is used to assign a permanent ID to an element. This ID will be used to reference the element in the translation process.
<div data-lw-id="MY_UNIQUE_ID">
This text will be translated as a single unit
</div>
The ID must be unique for each element, with no overlap possible