aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CHANGELOG.md5
-rw-r--r--fatcat_scholar/templates/base.html4
-rw-r--r--fatcat_scholar/web.py15
3 files changed, 23 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index ab0e4a5..2e4f618 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -12,6 +12,11 @@ See also:
### Added
+- added Farsi/Persian (fa) translation
+- added Italian (it) translation
+- added Dutch (nl) translation
+- added Portuguese (pt) translation
+
### Changed
### Fixed
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 @@
<a role="menuitem" class="item" href="/ar/">عَرَبِيّ</a>
<a role="menuitem" class="item" href="/de/">Deutsch</a>
<a role="menuitem" class="item" href="/es/">Español</a>
+ <a role="menuitem" class="item" href="/fa/">فارسی</a>
<a role="menuitem" class="item" href="/fr/">Français</a>
<a role="menuitem" class="item" href="/hr/">Hrvatski</a>
+ <a role="menuitem" class="item" href="/it/">Italiano</a>
<a role="menuitem" class="item" href="/nb/">Norwegian Bokmål</a>
+ <a role="menuitem" class="item" href="/nl/">Nederlands</a>
+ <a role="menuitem" class="item" href="/pt/">Português</a>
<a role="menuitem" class="item" href="/ru/">Русский</a>
<a role="menuitem" class="item" href="/zh/">中文</a>
<div class="divider"></div>
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,
]