I want to do some localization by externalizing string and having some strings use other parts of the text object below. But I find that I can't refer to the object that it is part of. Is there is a way around this?
var text = {greeting: "hi", fullGreeting: text.greeting + " sir"}