Backport of #179: Make get_available_languages use cached translations if they were prefetched. Fixes #97.