Skip to content

Default and available language selection (#28)

Adds the following environment variables:

  • LEKTOR_DEFAULT_LANGUAGE: The default language of the site, such as en.
  • LEKTOR_AVAILABLE_LANGUAGES: Limit the available languages to a subset, such as en am ar.

These are processed by the scripts/pre-build routine which applies the configuration at onion-launchpad.lektorproject.

The resulting site can then have a homepage different from english and a language selection menu with fewer languages than those available in the landing page translation branch.

Additionally:

  • The language drop-down and button aren't shown when the site has only a single language.
  • The language drop-down height works both for many or just a few languages.
Edited by Silvio Rhatto

Merge request reports