Cannot successfully localize the text within the Algolia searchbar

I am trying to localize the text in the Algolia search bar to show a custom sentence. I cannot get it to work successfully. Whenever i add the “translations” function, the search-bar stops functioning. I was wondering if someone could take a look at what I’m doing wrong.