Move lang to locale (and refactor) resources view