A book about preserving languages which are going extinct has won the British Academy Book Prize for Global Cultural Understanding 2024.