aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-16 18:19:15 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-16 18:19:17 -0700
commit18d497eb7a83f935fa941c2e4dd86545104a9412 (patch)
tree38de98ee428cb6a2b1312ba49806268f63a80878 /fatcat_scholar
parent701bc6b77808daba3ea15a1e49add326d9f6badd (diff)
downloadfatcat-scholar-18d497eb7a83f935fa941c2e4dd86545104a9412.tar.gz
fatcat-scholar-18d497eb7a83f935fa941c2e4dd86545104a9412.zip
SIM pipeline: more language conversions
Not sure where these language strings are coming from, but these were from existing SIM item metadata in archive.org
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/transform.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/fatcat_scholar/transform.py b/fatcat_scholar/transform.py
index c08be7b..590d44a 100644
--- a/fatcat_scholar/transform.py
+++ b/fatcat_scholar/transform.py
@@ -50,9 +50,12 @@ SIM_RELEASE_TYPE_MAP = {
}
SIM_LANG_MAP = {
"English": "en",
- "Spanish": "es",
"German": "de",
- # TODO:
+ "Italian": "it",
+ "French": "fr",
+ "Afrikaans": "af",
+ "Spanish": "es",
+ # TODO: more
}
SIM_COUNTRY_MAP = {
"United States": "us",