Here "city gates" represents the cities themselves. Moses speaks to the Israelites as if they were one man, so the instances of "your" here are singular. Alternate translation: "your foreigners who live in your cities" (See: [[rc://en/ta/man/jit/figs-synecdoche]] and [[rc://en/ta/man/jit/figs-you]])