Skip to content

Language Support for LTC

Gwyneth Peña-Siguenza edited this page May 26, 2022 · 3 revisions

For the language support, you will have to create a different directory, I would suggest it under the root.

└── learntocloud
    ├── README.md
    ├── _sidebar.md
    └── es
        ├── README.md
        ├── _sidebar.md

We must fallback to the default language when a page is requested and it doesn't exist for the given locale. Example:

  • try to fetch the page of /es/overview. If this page exists, it'll be displayed.
  • then try to fetch the default page /overview (depending on the default language). If this page exists, it'll be displayed.
  • then display the 404 page.
  fallbackLanguages: ['fr', 'de'],
};
Clone this wiki locally