summaryrefslogtreecommitdiff
path: root/babel/core.py
diff options
context:
space:
mode:
Diffstat (limited to 'babel/core.py')
-rw-r--r--babel/core.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/babel/core.py b/babel/core.py
index 9393c23..220cbaf 100644
--- a/babel/core.py
+++ b/babel/core.py
@@ -565,6 +565,18 @@ class Locale:
return self._data['decimal_formats']
@property
+ def compact_decimal_formats(self):
+ """Locale patterns for compact decimal number formatting.
+
+ .. note:: The format of the value returned may change between
+ Babel versions.
+
+ >>> Locale('en', 'US').compact_decimal_formats["short"]["one"]["1000"]
+ <NumberPattern u'0K'>
+ """
+ return self._data['compact_decimal_formats']
+
+ @property
def currency_formats(self):
"""Locale patterns for currency number formatting.