Skip to main content

Support for i18n (under construction)

What is i18n?

i18n stands for Internationalization, which means multilingual support.

Supporting i18n (official documentation)

Docusaurus supports i18n. You can support i18n by looking at the official documentation. It is much easier to support i18n by looking at the Using Git documentation rather than the parent documentation.

Add page editing options

Supporting i18n adds the option to edit pages. With this option, you can edit pages that have been translated into other languages.

docusaurus.config.js
presets: [
[
'classic',
/** @type {import('@docusaurus/preset-classic').Options} */
({
docs: {
sidebarPath: require.resolve('./sidebars.js'),
editUrl: `${COMMON_DATA.githubRepoLink}/tree/master/`,
editLocalizedFiles: true,
},
blog: {
showReadingTime: false,
editUrl: `${COMMON_DATA.githubRepoLink}/tree/master/`,
editLocalizedFiles: true,
blogSidebarCount: 'ALL',
blogSidebarTitle: 'List of all posts',
},
}),
],
],