I have forked the Casper js theme and I added a .js
file for site search 360, it looks like this:
(function (window, document) {
window.ss360Config = {
siteId: location.hostname,
style: {
suggestions: {
text: {
color: '#333333',
},
background: {
color: '#ffffff',
},
padding: '5px',
distanceFromTop: '0px',
border: {
color: '#dddddd',
radius: '0px',
},
},
searchBox: {
text: {
color: '#333333',
size: '14px',
},
background: {
color: '#ffffff',
},
border: {
color: '#dddddd',
radius: '0px',
},
padding: '10px',
icon: {
image: 'magnifier',
color: '#666666',
},
},
},
results: {
group: false,
moreResultsButton: 'Show more results',
infiniteScroll: true,
fullScreenConfig: {
trigger: '.ss360-trigger',
caption: '',
transition: 'fade',
},
},
tracking: {
providers: [],
},
layout: {
mobile: {
showUrl: true,
},
desktop: {
showUrl: true,
},
},
showErrors: false,
};
var e = document.createElement('script');
e.async = !0;
e.src = 'https://cdn.sitesearch360.com/v13/sitesearch360-v13.min.js';
document.getElementsByTagName('body')[0].appendChild(e);
})(window, document);
This snippet was taken from the site search 360 designer tool here.
I want to translate the text from the configuration, how is it possible ?