From 68fc3bb2250552d50ce9a47944b0699501647e38 Mon Sep 17 00:00:00 2001 From: Kevin Payravi Date: Wed, 9 Aug 2023 02:06:50 -0500 Subject: [PATCH] Adding language for non-EN search filter banners --- content-search-filtering.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content-search-filtering.js b/content-search-filtering.js index 22f6dd1..6cd71e5 100644 --- a/content-search-filtering.js +++ b/content-search-filtering.js @@ -198,7 +198,7 @@ function filterSearchResults(searchResults, searchEngine, storage) { let searchRemovalNoticeLink = document.createElement('a'); searchRemovalNoticeLink.href = 'https://' + site.destination_base_url; searchRemovalNoticeLink.textContent = site.destination; - searchRemovalNoticePretext = document.createTextNode('Indie Wiki Buddy has filtered out results from ' + site.origin_group + '. Look for results from '); + searchRemovalNoticePretext = document.createTextNode('Indie Wiki Buddy has filtered out results from ' + site.origin_group + (site.lang !== 'EN' ? ' (' + site.lang + ')' : '') + '. Look for results from '); searchRemovalNoticePosttext = document.createTextNode(' instead!'); linebreak = document.createElement("br"); searchRemovalNotice.appendChild(searchRemovalNoticePretext);