Move lang to locale for write settings