diff --git a/sphinx/config.py b/sphinx/config.py index 15337e924d3..5e8cffb3ec5 100644 --- a/sphinx/config.py +++ b/sphinx/config.py @@ -170,7 +170,7 @@ def read(cls, confdir: str, overrides: Dict = None, tags: Tags = None) -> "Confi # (This conversion should not be removed before 2025-01-01). if namespace.get("language", ...) is None: logger.warning(__("Invalid configuration value found: 'language = None'. " - "Update your configuration to a valid langauge code. " + "Update your configuration to a valid language code. " "Falling back to 'en' (English).")) namespace["language"] = "en" diff --git a/tests/test_config.py b/tests/test_config.py index c0b8864e00d..4dabafc8313 100644 --- a/tests/test_config.py +++ b/tests/test_config.py @@ -411,7 +411,7 @@ def test_conf_py_language_none_warning(logger, tempdir): assert logger.warning.called assert logger.warning.call_args[0][0] == ( "Invalid configuration value found: 'language = None'. " - "Update your configuration to a valid langauge code. " + "Update your configuration to a valid language code. " "Falling back to 'en' (English).")