In the Integration module of Spotler Activate Search, you might see Site integration v1 and Site integration v2 below eachother. This means that you get to test and use the new v2 template functionalities and eventually switch to v2 completely. The v2 template offers more integration options and can be fully customizable, while having faster responsive times. New features will also be developed on v2.
Not sure which version of Site integration and templating you're using? Ask the admin of your account on how this is set up for you.
Are you just seeing Site integration, without the v1 and v2? This means that you are working with a v2 template only. The admin of an account is able to toggle this on or off.
Default language and language files
Translations are being used to replace textual labels within the templates. Every index within Search can have 1 language file per language. If no language file is created within the index, the default template will use the Dutch default search language file. Selecting a language will execute 2 steps for this language:
- Get the default general language file of Search
- Get the existing index language file
Combine the labels of the two files
If the default general language file of Search is extended with labels, these will automatically show in the interface. If you have overwritten default text in the past, this will be the text that will show for a label.
Download example translation files
You can download example translation files for en_US and for nl_NL here.
Other languages
The dropdown will by default show options for language Dutch (nl_NL) and English (en_US). If you want other options, you can contact customer support to make this language available.
Change text for labels
You can change the text for labels in this overview. When saving, automatically the language file is created. Default labels can't be removed and when adding other text for a default label, the default text will be overwritten.
Custom labels
You can add custom labels by clicking the grey '+' icon at the bottom of the default labels. A new input field appears where you fill in a custom class and translation. You can delete it again by clicking the blue trashcan icon.
We use i18next documentation for implementing the labels. On their website you can check conventions on how to implement the label in your custom template.