Dashboards & Visualizations

How to resolve a token in a i18n-Token?

stephanfuchs
Engager

Hello,

I have a specific question concerning translations with i18n.

So what I want to do is translate an i18n-token  in a HTML-environenment which contains "normal" Splunk token and resolve them. For example the i18n token "i18n_coil_machine2_vor_x_tagen2":

"$tok_coil_machine_2$ vor $tok_latest_stack_time_2$ Tagen". When I insert the token in a dashboard title it works and it resolves the inner token. But when I use it in a HTML it does not:

Results in title: "XXX vor YYY Tagen"

Results in HTML: $tok_coil_machine_2$ vor $tok_latest_stack_time_2$ Tagen

Here is a minimal working example :

<dashboard script="translation.js">
<init>
<set token="tok_coil_machine_2">XXX</set>
<set token="tok_latest_stack_time_2">YYY</set>
</init>
<label>TEST</label>
<row>
<panel>
<title>i18n_coil_machine2_vor_x_tagen2</title>
<html>Only Token: $tok_coil_machine_2$ und $tok_latest_stack_time_2$</html>
<html> IN HTML: <span i18ntag="">i18n_coil_machine2_vor_x_tagen2</span></html>
</panel>
</row>
</dashboard>

Is there a solution for this? I would be very thankful for any help.

0 Karma
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

May 2026 Splunk Expert Sessions: Security & Observability

Level Up Your Operations: May 2026 Splunk Expert Sessions Whether you are refining your security posture or ...

Network to App: Observability Unlocked [May & June Series]

In today’s digital landscape, your environment is no longer confined to the data center. It spans complex ...

SPL2 Deep Dives, AppDynamics Integrations, SAML Made Simple and Much More on Splunk ...

Splunk Lantern is Splunk’s customer success center that provides practical guidance from Splunk experts on key ...