The President shall, by and with the advice and consent of the Senate, appoint a United States attorney for the Virgin Islands to whose office the provisions of chapter
35 of title
28, shall apply. Except as otherwise provided by law it shall be the duty of the United States attorney to prosecute all offenses against the United States and to conduct all legal proceedings, civil and criminal, to which the Government of the United States is a party in the district court and in the courts established by local law. He shall also prosecute in the district court in the name of the government of the Virgin Islands all offenses against the laws of the Virgin Islands which are cognizable by that court unless, at his request or with his consent, the prosecution of any such case is conducted by the attorney general of the Virgin Islands. The United States attorney may, when requested by the Governor or the attorney general of the Virgin Islands, conduct any other legal proceedings to which the government of the Virgin Islands is a party in the district court or the courts established by local law.