...
The language
default value is null
. This options allows user fetch results on 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'
:Code Block <div data-component="vue-app-spa" ...
...
...
data-current-culture="@Model.CurrentCulture"
...
... > ... </div>
updating the configuration with a language:
...
Code Block const config = { ... language: "en", ... }; var widget = HawksearchVue.createWidget(component, { config: config });
...
Usage
...
HawksearchVue.initialSearch(widget);