Try ERPNext Buy Support Partners Foundation Foundation Members

Feature Showcase: Website Mulitilanguage Support (Internationalization)

We are currently adding multilanguage support (internationalization) to the ERPNext website. This is what we have planned, we are looking forward to your feedback.

Adding the Language Picker to the Navigation on the Website

I would integrate this language picker flag icons can be defined in the backend but we would suggest using which is under MIT license. The flags would be in the current Language DocType, we should also consider uploading the flag icons with 25px to Frappe Core for usage wherever people want and populating the Flags field with those by default.

Currently the navigation looks like this:

I would add the language picker betweeen the login and the navigation like this mockup (collapsed):

When the user clicks the language they can pick among the available language options (expanded):

Adding Languages to Website Settings

  1. In Website Settings add a new section called Website Languages
  2. Add checkboxes Enable Multilanguage Support and Display Language Picker in Top Bar. Without Multilanguage Support being enabled we hide the language features in blogs, knowledge base and pages.
  3. Add a new child table Website Languages with fields Language (Link: Language), Route (Data), Default (Check, unique)

The route would be a default prefix that is added to the individual Web Page, Help Article or Blog Post route for example the “Company History” pages route in English would be route “/en” and then “company-history” so while the German could be This is SEO friendly.

Changes in Other DocTypes

This example is for Web Page, similar procedure would have to be done for Help Article and for Blog Post.

  1. In Web Page add Language (Link: Language [javascript limited to children in Website Languages child table]) and show it in list view if Website Settings -> Enable Multilanguage Support == TRUE.
  2. When creating a new Web Page by default put in the default language from Website Settings -> Website Languages -> default.
  3. If Web Page Language not the default language, add new field Translation of Web Page (Link: Web Page) which will link the translations with its parent.
  4. In Web Page show linked translations in Dashboard

How Language Switching Works

  1. If the user is logged in we also change his language preference in his user under /me
  2. Open the page of the translation of the source site, if you are on the home page in English you should switch to the home page in German. If you are on the contact page in English you should switch to that in German. If there is no translation for that site display the default languages site.

I’m surprised there has been no response to this topic. this looks like a great addition! I was just searching for how to set internationalization up with Erpnext and came across this post. sadly I see it is not in erpnext v12?

@nostahl There is open PR to solve this issue: