Add backward compatibility for fetchLanguageNames

Bug: 46737
Change-Id: Ife7c2834c2b2c4f2619b4a5d8e0b0aa1db595984
Merge "Add backward compatibility for fetchLanguageNames"