rename lang to locale for consistency