From e70e7cff4b5c910405694fb297330507b49937b1 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Tue, 23 Mar 2021 21:38:16 -0700 Subject: implement additional translation languages --- fatcat_scholar/templates/base.html | 4 ++++ fatcat_scholar/web.py | 15 ++++++++++++++- 2 files changed, 18 insertions(+), 1 deletion(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/templates/base.html b/fatcat_scholar/templates/base.html index 584f950..5af6ea2 100644 --- a/fatcat_scholar/templates/base.html +++ b/fatcat_scholar/templates/base.html @@ -89,9 +89,13 @@ عَرَبِيّ Deutsch Español + فارسی Français Hrvatski + Italiano Norwegian Bokmål + Nederlands + Português Русский 中文
diff --git a/fatcat_scholar/web.py b/fatcat_scholar/web.py index 2193746..5020bf1 100644 --- a/fatcat_scholar/web.py +++ b/fatcat_scholar/web.py @@ -27,7 +27,20 @@ from fatcat_scholar.schema import ScholarDoc logger = logging.getLogger() -I18N_LANG_TRANSLATIONS = ["de", "zh", "ru", "ar", "fr", "es", "nb", "hr"] +I18N_LANG_TRANSLATIONS = [ + "ar", + "de", + "es", + "fa", + "fr", + "hr", + "it", + "nb", + "nl", + "pt", + "ru", + "zh", +] I18N_LANG_OPTIONS = I18N_LANG_TRANSLATIONS + [ settings.I18N_LANG_DEFAULT, ] -- cgit v1.2.3