The core of the functionality was already implemented when pg_import_system_collations was added. This just exposes it as an option in the SQL command.