Adding language for non-EN search filter banners

pull/227/head
Kevin Payravi 2023-08-09 02:06:50 -05:00
parent 08d9b3ff65
commit 68fc3bb225
1 changed files with 1 additions and 1 deletions

View File

@ -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);