Tutorials
Learn more implement internationalization in Fumadocs UI
Please refer to this guide to setup basic configurations and learn how to structure the documents.
Ensure you have your page tree, layout and middleware ready before getting started.
Create Provider
A I18nProvider
is needed for internationalization features.
Put your pages and layouts under /app/[lang]
, where the 'lang' parameter is at the second segment.
Then, wrap the root provider inside of your i18n provider.
Adding Translations
We only provide english translation by default, you have to pass your translations to the provider.
Add Language Switch
To allow users changing their language, you can add a <LanguageSelect />
component to your UI, for example, as sidebar footer.
Last updated on