Language
language
The language
default value is null
. This options allows user fetch results and adding tracking events in different languages.
Options
by default the language is updated from the Hawksearch widget View template and its value is
'en'
:<div data-component="vue-app-spa" ... data-current-culture="@Model.CurrentCulture" ... > ... </div>
updating the configuration with a language:
const config = { ... language: "en", ... }; var widget = HawksearchVue.createWidget(component, { config: config }); HawksearchVue.initialSearch(widget);
Â