Is there a way to access resource strings using object properties / keys instead of passing strings?
I've tried to get access to the resource bundle, but the variable is private, so I cannot even iterate to obtain list of keys.
This would make the code more readable, better syntax, and color coding in my text editor would be able to differentiate from regular strings in the code.
How I use today:
var resourcePath = 'Document.Create';
locale.getString(resourcePath + '.New');
How I would like to use:
var resDocCreate = locale.keys('Document.Create');
locale.getString(resDocCreate.New);
Is there a way to access resource strings using object properties / keys instead of passing strings?
I've tried to get access to the resource bundle, but the variable is private, so I cannot even iterate to obtain list of keys.
This would make the code more readable, better syntax, and color coding in my text editor would be able to differentiate from regular strings in the code.
How I use today:
How I would like to use: