inject lang to RestfulEntityBase

Related to #320