move translation to locale file and return in json format.