The function should be modified to somthing like this:
function _(n) {
var my_lang = <TMPL_VAR LANGUAGE>; -- not working !!!
if (my_lang == null)
my_lang = translations.english;
else
my_lang = translations.my_lang;
var item = my_lang[0][n];
var out = (item == null) ? n : item;
return out;
}
To avoid exception in some cases like this![image](https://user-images.githubusercontent.com/6836805/104180184-e81e0b80-541d-11eb-9eb8-bc1b8dade23e.png)
The function should be modified to somthing like this: