Label templating depending on some internal dictionary?

In my Grafana graph I have some query from the Prometheus (I don’t think it really matters). The labels are just regular integers (0, 1, 10, 123, …). Is it possible somehow to create the dictionary like:

{
1: “Decription for status 1”,
2: “Description for status 2”,
}

And update the label format so I will get the descriptions at the labels instead of raw integers?