Skip to main content
Force language on page

Guide to force the correct language using a shortcode

Stefan Hekman avatar
Written by Stefan Hekman
Updated over a month ago

Here is a guide to force the correct language using the [Repair_All] shortcode. If RepairPlugin does not automatically recognize the language of your page, you can use the language attribute in the shortcode. The LANGUAGE NAME column from Settings > Localization is used for this purpose.

Shortcode Examples for the 13 Standard Languages:

Language Name

Shortcode

English (United States)

[Repair_All language="English (United States)"]

English (United Kingdom)

[Repair_All language="English (United Kingdom)"]

Dutch

[Repair_All language="Dutch"]

German

[Repair_All language="German"]

Spanish

[Repair_All language="Spanish"]

French

[Repair_All language="French"]

Italian

[Repair_All language="Italian"]

Norwegian

[Repair_All language="Norwegian"]

Polish

[Repair_All language="Polish"]

Portuguese

[Repair_All language="Portuguese"]

Swedish

[Repair_All language="Swedish"]

Turkish

[Repair_All language="Turkish"]

Ukrainian

[Repair_All language="Ukrainian"]

Arabic

[Repair_All language="Arabic"]

Important Note:
If a user selects a language themselves, this preference will not be overridden by the shortcode. This is because the user has consciously set their own preference.

To test this correctly, use an incognito window in your browser. This ensures that user settings and preferences are temporarily ignored.

Did this answer your question?