How to Disable Translation on My Ghost Blog

As a blogger, you may want to restrict your content to a specific language and prevent automatic translations from being displayed. In this article, we will explore how to disable translation on your Ghost blog and maintain the original language of your content.

Learn how to disable translation on your Ghost blog and restrict your content to a specific language with our step-by-step guide. Follow our easy process to maintain the original language of your content and prevent automatic translations from being displayed.

How to Disable Translation on My Ghost Blog

Ghost uses a third-party translation service called i18n for internationalization. This service allows your content to be translated into multiple languages automatically. The i18n feature is enabled by default, but it can be disabled if you wish to restrict your content to a specific language.

Steps to Disable Translation

Disabling translation on your Ghost blog is a simple process. Follow these steps to disable translation:

Step 1: Access the Code Injection Section

Go to your Ghost admin dashboard and click on the “Code Injection” option in the sidebar menu.

Step 2: Add Custom Code

Scroll down to the “Site Header” section and add the following code:

<script>
$(function() {
if (window.location.pathname.indexOf(“/en/”) !== -1) {
window.location.pathname = window.location.pathname.replace(“/en/”, “/”);
}
});
</script>

This code will redirect any page that has “/en/” in the URL to the same page without the “/en/”.

Step 3: Save Changes

Click on the “Save” button to save your changes.

Conclusion

Disabling translation on your Ghost blog is a quick and easy process. By following the steps outlined in this article, you can restrict your content to a specific language and prevent automatic translations from being displayed.