read locale from url