Splunk Dev

change defult language SPLUNKJS

thuhuongle
Explorer

Hi,
Have anyone found a way to change default language (english) when using splunk js in your own web( outside of splunk web)?
By using spkunk view components, it is only in english ? I have been searching through official document but could not find any useful information.
Thanks !
It s an example of TimeRangeView in english. I want to change it to french.

thuhuongle_0-1630506444385.png

 

            // Create a custom time range picker
            // Show the Presets panel, hide the Real-time and Advanced panels
            var mypresetsettings = {
                showCustomDateTime: false,
                showPresets: false,
                showCustomRealTime: false,
                showCustomAdvanced: false,
                showCustomRelative: false,
                showCustomDate: true
            };

            // Instantiate a view using the custom time range picker
            var mytimerange_custom = new TimeRangeView({
                id: "example-timerange_custom",
                managerid: "search3",
                earliest_time: "-7d",
                latest_time:"now",
                dialogOptions: mypresetsettings,
                el: $("#mytimerangeview_custom")
            }).render();
            console.log(mytimerange_custom.val());

            // Update the search manager when the time range changes
            mytimerange_custom.on("change", function () {
                mysearch3.settings.set(mytimerange_custom.val());
                //mysearch4.setting.set(mytimerange_custom.val());
            });

 

Labels (2)
0 Karma
Get Updates on the Splunk Community!

Webinar Recap | Revolutionizing IT Operations: The Transformative Power of AI and ML ...

The Transformative Power of AI and ML in Enhancing Observability   In the realm of IT operations, the ...

.conf24 | Registration Open!

Hello, hello! I come bearing good news: Registration for .conf24 is now open!   conf is Splunk’s rad annual ...

ICYMI - Check out the latest releases of Splunk Edge Processor

Splunk is pleased to announce the latest enhancements to Splunk Edge Processor.  HEC Receiver authorization ...