Merge pull request #999 from return42/fix-doc-settings2

[docs] document settings.yml: search.languages
This commit is contained in:
Alexandre Flament 2022-03-26 17:09:07 +01:00 committed by GitHub
commit dec04c0ed6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 27 additions and 0 deletions

View file

@ -123,6 +123,24 @@ Global Settings
Default search language - leave blank to detect from browser information or
use codes from :origin:`searx/languages.py`.
``languages``:
List of available languages - leave unset to use all codes from
:origin:`searx/languages.py`. Otherwise list codes of available languages.
The ``all`` value is shown as the ``Default language`` in the user interface
(in most cases, it is meant to send the query without a language parameter ;
in some cases, it means the English language) Example:
.. code:: yaml
languages:
- all
- en
- en-US
- de
- it-IT
- fr
- fr-BE
``ban_time_on_fail``:
Ban time in seconds after engine errors.

View file

@ -21,6 +21,15 @@ search:
# Default search language - leave blank to detect from browser information or
# use codes from 'languages.py'
default_lang: ""
# Available languages
# languages:
# - all
# - en
# - en-US
# - de
# - it-IT
# - fr
# - fr-BE
# ban time in seconds after engine errors
ban_time_on_fail: 5
# max ban time in seconds after engine errors