docs/guides/configuration/internationalization.md
marimo provides basic internationalization support through locale configuration. This primarily affects how dates, numbers, and relative times are formatted throughout the interface.
The locale setting configures formatting for:
!!! note "Text is not localized" marimo does not localize UI text, error messages, or documentation as this requires significant effort which we currently cannot afford on our own.
You can configure the locale in three different ways, with the following precedence order:
Script config > pyproject.toml config > user config
Configure the locale globally for all notebooks through the Settings menu in the marimo editor:
en-US, fr-FR, de-DE)This setting is stored in your user configuration file (~/.config/marimo/marimo.toml or similar).
For team projects, you can set the locale in your pyproject.toml file to ensure consistency across all team members:
[tool.marimo.display]
locale = "en-US"
This configuration will apply to all notebooks in the project and override individual user settings.
You can also configure the locale for a specific notebook using script metadata. Add this at the top of your notebook file:
# /// script
# [tool.marimo.display]
# locale = "fr-FR"
# ///
This has the highest precedence and will override both project and user configurations for that specific notebook.
!!! note "Default behavior"
If no locale is configured, marimo will use the user's browser locale (detected from navigator.language).
The locale should follow the BCP 47 language tag format (language-country).
If your locale setting isn't taking effect:
Intl APITo verify your current configuration, run:
marimo config show
This will display your active configuration including the current locale setting.