How to unpublish translations

In this article, you will learn how to hide translations on your website. Our publish/unpublish feature allows you to disable the translations displayed for your visitors when revising your website.

 

How the unpublish option works

When you set up Weglot, all added languages are published by default. This means visitors can immediately access the translated pages.

Our “unpublish” option allows you to ensure that visitors won’t see those translations until you switch the language back to "publish" mode.

This feature is useful when you want to edit translations before making them publicly visible.


 

How to switch to unpublish Mode

Go to your Weglot Dashboard > All projects > Select a project >  Languages

Click on the "…" button on your chosen language and click on the "Unpublish" option:
 

You can choose to unpublish for one language or for all languages.

You'll see the language status switch to “Unpublished”:

 

 

⚠️ Note that if all languages are unpublished, the Language Switcher will not be displayed on your website while in publish mode.


 

How to display translations while in Unpublished Mode

Even if a language pair is set to unpublished, you can still display its translations by adding this query at the end of your URL:

?weglot-private=1  

Make sure to add it directly after the URL with no spaces or extra characters. For example:

yourwebsite.com?weglot-private=1  

When using this URL, the Language Switcher will also be displayed, even if all languages are set to private.

 

 

Switching back to publish mode

Go back to your Weglot Dashboard > All projects > Select a project >  Languages.
Click on “publish”. Visitors will then be able to see the translations for the selected language again.
Give feedback about this article

Was this article helpful?