From eb226883024c61844a29a0be5b0bcb4c2af814e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonas=20Sch=C3=A4fer?= Date: Sun, 15 May 2022 14:11:24 +0200 Subject: [PATCH] Use english as default language instead of danish It is more likely that a user for whose language no translation exists can read english than danish. The fallback to english was apparently introduced in c58ce845, though it is possible that `best_match` did that internally before. Fixes #131. --- snikket_web/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/snikket_web/__init__.py b/snikket_web/__init__.py index 5ba3b78..bb651a2 100644 --- a/snikket_web/__init__.py +++ b/snikket_web/__init__.py @@ -145,9 +145,13 @@ class AppConfig: site_name = environ.var("") avatar_cache_ttl = environ.var(1800, converter=int) languages = environ.var([ + # Keep `en` as the first language, because it is used as a fallback + # if the language negotiation cannot find another match. It is more + # likely that users are able to read english (or find a suitable + # online translator) than, for instance, danish. + "en", "da", "de", - "en", "fr", "id", "it",