Modular transformations of string theory are shown to play a crucial role in the discussion of discrete flavor symmetries in the Standard Model. They include CP transformations and provide a unification of CP with traditional flavor symmetries within the framework of the eclectic flavor scheme. The unified flavor group is non-universal in moduli space and exhibits the phenomenon of Local Flavor Unification, where different sectors of the theory (like quarks and leptons) can be subject to different flavor structures.