use Locales for representing languages

Change-Id: I3d8d7d55735f5b424a38333a39377aa3c9e1993d