feat : new environment variable SEARXNG_LANGUAGE , in the persistent config, that you can also edit in Admin > Web Search pannel in case you choose Searxng. This is used in the request to searxng as the "search language" (arguement "language"). Before this feature, it was set to en-US only. Now default is "all". (#19909)

This commit is contained in:
Boris Bocquet
2025-12-14 18:38:47 +01:00
committed by GitHub
parent 195801f74a
commit bc681f8258
5 changed files with 37 additions and 5 deletions

View File

@@ -189,7 +189,7 @@
{:else if webConfig.WEB_SEARCH_ENGINE === 'searxng'}
<div class="mb-2.5 flex w-full flex-col">
<div>
<div class=" self-center text-xs font-medium mb-1">
<div class=" self-left text-xs font-medium mb-1">
{$i18n.t('Searxng Query URL')}
</div>
@@ -205,6 +205,25 @@
/>
</div>
</div>
</div>
<div class="mb-2.5 flex w-full flex-col">
<div class=" self-left text-xs font-medium mb-1">
{$i18n.t('Searxng search language (all, en, es, de, fr, etc.)')}
</div>
<div class="flex w-full">
<div class="flex-1">
<input
class="w-full rounded-lg py-2 px-4 text-sm bg-gray-50 dark:text-gray-300 dark:bg-gray-850 outline-hidden"
type="text"
placeholder={$i18n.t('Enter Searxng search language')}
bind:value={webConfig.SEARXNG_LANGUAGE}
autocomplete="off"
required
/>
</div>
</div>
</div>
</div>
{:else if webConfig.WEB_SEARCH_ENGINE === 'yacy'}