Aladdin is a Chinese national in an North African unknown setting having been drawn there by a North African sorcerer. It was added to 1001 Nights in its French translation based on a Syrian folktale from a woman in Aleppo brought to Paris.
EDIT
Turns out I remembered things incorrectly. I thought the sorcerer brought Aladdin to Africa, but that is not clear in the translation which implies the whole story is set in China but with all the descriptions matching the typical Middle Eastern tales (such as there being a Sultan and not an Emperor).