I am not sure about this. I found there is some difference among all apps. Some apps put lang and dir in ready but others put them in onlocalized.