Helloš!
I have a multilingual website. I was having trouble letting my search bar search in other languages. I made a search bar to search for my dataset. I made a field for the Japanese search value in my database. I added it to my code. But the search bar doesnāt let me search for the Japanese name.
import wixData from 'wix-data';
$w.onReady( function() {
})
export function input1_keyPress(event, $w) {
let searchValue = $w("#input1").value;
$w("#dataset1").setFilter(wixData.filter().contains('name', searchValue)
.or(wixData.filter().contains('title', searchValue)))
.or(wixData.filter().contains('japanese', searchValue));
}
The value ānameā is the name of the image. The value ātitleā is the name of the author. And ājapaneseā is the value in the database for the Japanese name of the image.
The search bar works when I search in English. Does anyone know why? Did I forget some code? Also, is it possible to only show only the images with the tag āpublishedā because I am letting people upload there own images and I would like to verify them before they are on the live site .
Regards
Arthur