Languages

You will learn:

Language settings: Console → Settings → Languages.

Changing the primary language

English (en) is the primary language for newly created blogs. If you are blogging in a different language, it is important to change the language in Language settings to tell users, browsers, and crawlers the language of your blog.

In language settings, each language has a code and a name.

Multi-language Blogs

Hyvor Blogs comes with in-built support for multi-language blogs. Therefore, it is simple to set up a multi-language blog. Only thing you have to do is adding a new language in settings. Make sure you use a correct language code as explained above.

Routes

Let's say you there are two languages en (default) and fr in your blog. Now, / will list all English posts. /fr will list all French posts. All routes of your blog will be changed similarly.

Writing Translated Posts

When you have multiple languages set up on your blog, you will see a Language option in settings of each post, which set to your default language. You may change this to another language to add translated posts. When you do this, the slug field will change to Original Post with a dropdown to select the original post.

Let's say, you have a hello-world post written in English. To add its translated version, create a new post as usual and change language to French in post settings. The new post's slug will now be fr/hello-world. You cannot change the slug of the translated posts.

Technical SEO

Here are some under the hood works that Hyvor Blogs do to make sure search engine robots understand your multi-language pages.

HB adds the lang attribute to the <html> tag in all pages using the language code you set (this is why using the correct language codes are important).

<html lang="en">

In addition, HB will add hreflang alternate tags. For example, if you have three languages (en, fr, es), the en index page (/) will have these tags.

<link rel="alternate" href="https://yourblog.com/fr" hreflang="fr" />
<link rel="alternate" href="https://yourblog.com/es" hreflang="es" />

For posts, we will add these alternate tags only if we can find its translated posts.

Translating the Theme