Using the Language Block Macro (Suomeksi)
This page provides instructions for using the Language Block macro.
The macro can be found in the Other macros menu:
Language Block
Purpose
The macro wraps content in a <span lang="..."> element, allowing screen readers to dynamically switch pronunciation rules for multilingual content.
It is best suited for short phrases or sections written in a different language than the rest of the page.
How to use:
{lang-block:language=en}
This text will be read in english.
{lang-block}
Parameters
Parameter | Description |
|---|---|
language | ISO 639-1 language code (e.g., en, fi, sv) |
Example
This page is mostly in English, but we can include foreign terms like:
This page is mostly in English, but we can include terms like
{lang-block:language=fi}tervetuloa{lang-block}
or
{lang-block:language=sv}välkommen{lang-block}.

