summaryrefslogtreecommitdiff
path: root/docs/api
diff options
context:
space:
mode:
authorAarni Koskela <akx@iki.fi>2016-01-08 10:46:04 +0200
committerAarni Koskela <akx@iki.fi>2016-01-11 10:13:51 +0200
commit935a0be2e48bfa5da03ab4a796fd0b8fc3995571 (patch)
tree8fe0cb8e0e2299428c88854ee2fd3b15fffc0e83 /docs/api
parent07dc2e4bbd57e76e419b1949820f5fbd03e2d2a8 (diff)
downloadbabel-935a0be2e48bfa5da03ab4a796fd0b8fc3995571.tar.gz
Add documentation for `babel.languages`
Fixes #319
Diffstat (limited to 'docs/api')
-rw-r--r--docs/api/index.rst1
-rw-r--r--docs/api/languages.rst14
2 files changed, 15 insertions, 0 deletions
diff --git a/docs/api/index.rst b/docs/api/index.rst
index b882d30..91f0967 100644
--- a/docs/api/index.rst
+++ b/docs/api/index.rst
@@ -10,6 +10,7 @@ public API of Babel.
core
dates
lists
+ languages
messages/index
numbers
plural
diff --git a/docs/api/languages.rst b/docs/api/languages.rst
new file mode 100644
index 0000000..287f1e0
--- /dev/null
+++ b/docs/api/languages.rst
@@ -0,0 +1,14 @@
+Languages
+=========
+
+.. module:: babel.languages
+
+The languages module provides functionality to access data about
+languages that is not bound to a given locale.
+
+Official Languages
+------------------
+
+.. autofunction:: get_official_languages
+
+.. autofunction:: get_territory_language_info