locale api fix