website/blog/2021/03-09-releasing-docusaurus-i18n.mdx
Today, we officially release Docusaurus 2 i18n (internationalization), as part of 2.0.0-alpha.71.
Docusaurus 2 has now reached full feature parity with Docusaurus 1. š And soon, after a few additional infrastructure updates and a bit more testing, the first Docusaurus 2 beta will be released.
We went the extra mile, and the new i18n support is even better than in Docusaurus 1.
In this post, we will present you the translation workflow, explain some design decisions and showcase early adopter sites that just went live: Jest, Redwood, and Datagit.
We also dogfood the i18n support on the Docusaurus 2 site itself, and this post is already available in English and French!
You can translate a Docusaurus site in 3 simple steps:
docusaurus.config.jsThe i18n support is very flexible and based on the filesystem.
The i18n tutorial is the best way to get started, and we provide help to use Git or Crowdin.
The goals of the Docusaurus i18n system are:
hreflang for youWe worked with a few volunteers to dogfood the i18n support before releasing it.
We have made it possible to upgrade a translated Docusaurus 1 site to Docusaurus 2.
Jest, using Docusaurus 1 and Crowdin was one of those sites.
The Docusaurus 2 migration was successful and the new site is now deployed in production (announcement post).
Redwood is a React full-stack Jamstack framework.
They were looking for a solution to create an internationalized learning platform, and became early adopters of Docusaurus 2 i18n for learn.redwoodjs.com, using Crowdin to get it translated to French.
The i18n system should work with any language, including Right-to-Left languages.
Datagit.ir is using Farsi, and a simple configuration option is able to flip the Docusaurus theme to add the required Right-to-Left support.
We sincerely hope you will adopt and like the new i18n support.
This feature has not been an easy one, and we would like to thank everyone that got involved in this journey:
Thanks for reading.
š And please, add your brand new i18n sites to our showcase page. We accept any all polished Docusaurus site here, and we are working on a redesign allowing you to filter sites by features.