Prefer to load from languages.json if it exists

cc @tnm