Debian Codegraph @

docs/api/core.rst

raw
1 Core Functionality
2 ==================
3
4 .. module:: babel.core
5
6 The core API provides the basic core functionality. Primarily it provides
7 the :class:`Locale` object and ways to create it. This object
8 encapsulates a locale and exposes all the data it contains.
9
10 All the core functionality is also directly importable from the `babel`
11 module for convenience.
12
13 Basic Interface
14 ---------------
15
16 .. autoclass:: Locale
17 :members:
18
19 .. autofunction:: default_locale
20
21 .. autofunction:: negotiate_locale
22
23
24 Exceptions
25 ----------
26
27 .. autoexception:: UnknownLocaleError
28 :members:
29
30
31 Utility Functions
32 -----------------
33
34 .. autofunction:: get_global
35
36 .. autofunction:: parse_locale
37
38 .. autofunction:: get_locale_identifier