forked from AnthonySigogne/web-search-engine
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlanguage.py
More file actions
43 lines (40 loc) · 862 Bytes
/
language.py
File metadata and controls
43 lines (40 loc) · 862 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
Toolbox for languages.
"""
__author__ = "Anthony Sigogne"
__copyright__ = "Copyright 2017, Byprog"
__license__ = "MIT"
__version__ = "1.0"
# declare a dictionary of languages (code -> long form)
languages = {
"fr": "french",
"en": "english",
"de": "german",
"ro": "romanian",
"ru": "russian",
"ar": "arabic",
"hi": "hindi",
"es": "spanish",
"fi": "finnish",
"nl": "dutch",
"cs": "czech",
"ca": "catalan",
"bg": "bulgarian",
"pt": "portuguese",
"da": "danish",
"no": "norwegian",
"sv": "swedish",
"el": "greek",
"th": "thai",
"tr": "turkish",
"it": "italian",
"ga": "irish",
"hu": "hungarian",
"lt": "lithuanian",
"id": "indonesian",
"fa": "persian",
"lv": "latvian"
}