The French administered the area as Syria until granting it independence in 1946 .