diff --git a/ht_booking/assets/views/base.html b/ht_booking/assets/views/base.html index da3a289..9c544c3 100644 --- a/ht_booking/assets/views/base.html +++ b/ht_booking/assets/views/base.html @@ -38,6 +38,21 @@ {% block head %}{% endblock head %} diff --git a/ht_booking/src/controllers/calendar.rs b/ht_booking/src/controllers/calendar.rs index 3dfd478..5c6b4e2 100644 --- a/ht_booking/src/controllers/calendar.rs +++ b/ht_booking/src/controllers/calendar.rs @@ -93,12 +93,13 @@ pub struct CalendarPage { pub rows: Vec, } -/// Resolves the UI language from the `lang` cookie (`sk` or `en`, default `en`). +/// Resolves the UI language from the `lang` cookie. Slovak is the default; +/// English applies only when the cookie explicitly asks for it. #[must_use] pub fn current_lang(jar: &CookieJar) -> String { match jar.get("lang").map(|c| c.value().to_string()) { - Some(ref l) if l == "sk" => "sk".to_string(), - _ => "en".to_string(), + Some(ref l) if l == "en" => "en".to_string(), + _ => "sk".to_string(), } }