Internationalization
Learn more implement internationalization in Fumadocs UI
Please refer to this guide to setup basic configurations and learn how to organize the documents.
Ensure you have your page tree, layout and middleware ready before getting started.
Setup
A I18nProvider
is needed for localization.
Put your pages and layouts under /app/[lang]
.
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, add a <LanguageSelect />
component to the UI, for example, to sidebar footer.
Last updated on