Hi Lianda,
You would say "J'habite au Cap-Occidental en Afrique du Sud."
Hi Swastik,
We say "au" as the name of this place is "Le Cap-Occidental". "Au" is the contraction of "à" + "le".
You can get more information here: Definite articles contract with à and de in French (French Contracted Articles)
Hope this helps!
Marie
Don't have an account yet? Join today
Test your French to the CEFR standard
Find your French level