Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions babel/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,6 +798,28 @@ def datetime_skeletons(self):
"""
return self._data['datetime_skeletons']

@property
def interval_formats(self):
"""Locale patterns for interval formatting.

.. note:: The format of the value returned may change between
Babel versions.

How to format date intervals in Finnish when the day is the
smallest changing component:

>>> Locale('fi_FI').interval_formats['MEd']['d']
[u'E d. \u2013 ', u'E d.M.']

.. seealso::

The primary API to use this data is :py:func:`babel.dates.format_interval`.


:rtype: dict[str, dict[str, list[str]]]
"""
return self._data['interval_formats']

@property
def plural_form(self):
"""Plural rules for the locale.
Expand Down
Loading