summaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/config.py')
-rw-r--r--fatcat_scholar/config.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/fatcat_scholar/config.py b/fatcat_scholar/config.py
index 86870bc..43b03a3 100644
--- a/fatcat_scholar/config.py
+++ b/fatcat_scholar/config.py
@@ -10,3 +10,22 @@ settings = Dynaconf(
GIT_REVISION = (
subprocess.check_output(["git", "describe", "--always"]).strip().decode("utf-8")
)
+
+I18N_LANG_OPTIONS = [
+ "ar",
+ "de",
+ "el",
+ "es",
+ "en",
+ "fa",
+ "fr",
+ "hr",
+ "it",
+ "ko",
+ "nb",
+ "nl",
+ "pt",
+ "ru",
+ "zh",
+]
+assert settings.I18N_LANG_DEFAULT in I18N_LANG_OPTIONS