restructured context.js and added setAllLangs
renamed lang to locale