Original: In its colonial heyday Dakar was one of the major cities of the French Empire, comparable to Hanoi or Beirut.
Simplified: Dakar was one of the major cities of the French Empire during this time.