Make search multilingual (#305)

* Make search multilingual

* Added Support for custom country flags

* Add search.md for more language + fix search behavior

Signed-off-by: hossainemruz <hossainemruz@gmail.com>

Co-authored-by: Pablo Marcos <codebergflamingo@staplehorse.anonaddy.com>
Co-authored-by: Emruz Hossain <hossainemruz@gmail.com>
This commit is contained in:
Pablo Marcos 2021-05-17 20:32:39 +02:00 committed by GitHub
parent 16f64aa4c2
commit ac28e9824e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 1315 additions and 17 deletions

View file

@ -1,5 +1,6 @@
{{/* if there is no custom flag provided, we define the flag with the country code */}}
{{ $languageCode:= .Lang }}
{{/* by default the language code and the country code are same */}}
{{/* by default the language code and the country code are same */}}
{{ $countryCode:= $languageCode }}
{{/* language code and country code are not same for some countries. we need to fix them. */}}