Hardcoded Translation

hi everyone,

as mentionned in the title I would like to hardcode tranlsation, not for the settings but on the screen,

let's say I have this function:

function Title(w){
    var T=["STEPS","FLOOR"];
    return T[w];
}

in order to save resources, I would to have this function by language, (of course the array will be much longer)

I had a look here: https://developer.garmin.com/connect-iq/reference-guides/jungle-reference/#junglereferenceguide (like for settings)

but the lang qualifer only seems to work for resources not sources.

Do you think it is possibel?