init({
thoughtSpotHost: "https://<hostname>:<port>",
customizations: {
content: {
strings: {
"Liveboard": "Dashboard",
"Edit": "Modify",
"Show underlying data": "Show source data",
"SpotIQ": "Insights",
"Monitor": "Alerts",
"Worksheets": "Data model"
}
}
}
});
Customize text strings
You can customize text strings on the ThoughtSpot application interface via customizations
object in the SDK.
Example🔗
Try it out in the Visual Embed Playground to preview the customization.
Limitations🔗
Note the following limitations:
-
The text strings are case-sensitive.
-
Customization of user-defined text strings such as object names, titles, or description text is not supported.
-
Note the order of strings and substring definitions when customizing text.
For example, if theLiveboard
text string is defined asDashboard
, all instances ofLiveboard
will be updated asDashboard
in the UI. If you want to customizePin to Liveboard
text string, you must specify the next substring asPin to Dashboard
instead ofPin to Liveboard
as shown here.customizations: { content: { strings: { "Liveboard": "Dashboard", "Pin to Dashboard": "Save", } } }
However, if the
Pin to Livebaord
string precedes the"Liveboard": "Dashboard"
string, specify the substring asPin to Livebaord
as shown in this example.customizations: { content: { strings: { "Pin to Liveboard": "Save", "Liveboard": "Dashboard", } } }
-
If you want to customize a text phrase, which contains strings that are already defined for customization, use the custom text string in substring definitions. For example, customizing
Search
asAnalyze your metrics
updates all instances ofSearch
in the UI, which means that theSearch data
button text will show as "Analyze your metrics data". To change theSearch data
button text, specify the substring asAnalyze your metrics data
.customizations: { content: { strings: { "Search": "Analyze your metrics", "Analyze your metrics data": "Build query" } } }
-
Sometimes, you may need to break a text phrase or sentence into multiple substrings. If a text string contains a word or phrase, for example,
Liveboard
, which is already defined or must be defined as a separate substring, you can break the text string as shown in this example:customizations: { content: { strings: { "Request access for this": "Get access to this", "Liveboard": "Dashboard" } } }