diff options
-rw-r--r-- | babel/support.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/babel/support.py b/babel/support.py index 1b6056f..40ce981 100644 --- a/babel/support.py +++ b/babel/support.py @@ -684,8 +684,11 @@ class Translations(NullTranslations, gettext.GNUTranslations): def _locales_to_names( locales: Iterable[str | Locale] | str | Locale | None, ) -> list[str] | None: - """ - Normalize a `locales` argument to a list of locale names. + """Normalize a `locales` argument to a list of locale names. + + :param locales: the list of locales in order of preference (items in + this list can be either `Locale` objects or locale + strings) """ if locales is None: return None |