aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_covid19/webface.py
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-04-03 12:43:13 -0700
committerBryan Newbold <bnewbold@archive.org>2020-04-03 12:43:13 -0700
commit2ec0dfcdefb954d9232a0025cafbf1cc426ae7c2 (patch)
tree3cdfe702dd76b693bc3d9064a23cf7b7532e8404 /fatcat_covid19/webface.py
parentc76aedc347e2e180fd4c8d7f40e0db29fcb81a3f (diff)
downloadfatcat-covid19-2ec0dfcdefb954d9232a0025cafbf1cc426ae7c2.tar.gz
fatcat-covid19-2ec0dfcdefb954d9232a0025cafbf1cc426ae7c2.zip
UI tweaks, i18n prep
Diffstat (limited to 'fatcat_covid19/webface.py')
-rw-r--r--fatcat_covid19/webface.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/fatcat_covid19/webface.py b/fatcat_covid19/webface.py
index 12ccac5..d645cb5 100644
--- a/fatcat_covid19/webface.py
+++ b/fatcat_covid19/webface.py
@@ -16,7 +16,11 @@ from sentry_sdk.integrations.flask import FlaskIntegration
class BaseConfig(object):
- SUPPORTED_LANGUAGES = {'en': 'English', 'de': 'Deutsch'}
+ SUPPORTED_LANGUAGES = {
+ 'en': 'English',
+ 'de': 'Deutsch',
+ 'zh': '中文',
+ }
BABEL_DEFAULT_LOCALE = 'en'
BABEL_DEFAULT_TIMEZONE = 'UTC'
GIT_REVISION = subprocess.check_output(["git", "describe", "--always"]).strip().decode('utf-8')
@@ -86,7 +90,7 @@ def page_about():
@bp.route('/sources', methods=['GET'])
def page_sources():
- return render_template('sources.html')
+ return render_template('sources_{}.html'.format(g.lang_code))
@bp.errorhandler(404)