summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-10-15 17:42:26 -0700
committerBryan Newbold <bnewbold@archive.org>2020-10-15 17:46:12 -0700
commit6fbd3cdb7e0982b565102a779ea63a452be353f2 (patch)
tree01178546287b8f5a8a6d6841a7e43b73045a4928 /fatcat_scholar
parent6a846bf089d9aaa8a442186927679da8a823f7c6 (diff)
downloadfatcat-scholar-6fbd3cdb7e0982b565102a779ea63a452be353f2.tar.gz
fatcat-scholar-6fbd3cdb7e0982b565102a779ea63a452be353f2.zip
i18n: enable French and Spanish (fr, es)
Diffstat (limited to 'fatcat_scholar')
-rw-r--r--fatcat_scholar/templates/base.html2
-rw-r--r--fatcat_scholar/web.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html
index bc8a168..a856016 100644
--- a/fatcat_scholar/templates/base.html
+++ b/fatcat_scholar/templates/base.html
@@ -169,6 +169,8 @@
<a class="item" href="/zh/">中文</a>
<a class="item" href="/ru/">Русский</a>
<a class="item" href="/ar/">عَرَبِيّ</a>
+ <a class="item" href="/es/">Español</a>
+ <a class="item" href="/fr/">Français</a>
<div class="divider"></div>
<a class="item" href="https://hosted.weblate.org/projects/internetarchive/fatcat-scholar/">{% trans %}Contribute to translations{% endtrans %}</a>
</div>
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py
index 25b840c..56307ea 100644
--- a/fatcat_scholar/web.py
+++ b/fatcat_scholar/web.py
@@ -16,7 +16,7 @@ from fatcat_scholar.search import do_fulltext_search, FulltextQuery, FulltextHit
# print(f"dynaconf settings: {settings.as_dict()}", file=sys.stderr)
-I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar"]
+I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es"]
I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [
settings.I18N_LANG_DEFAULT,
]