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. AT: "your foreigners who live in your cities" (See: [[rc://en/ta/man/translate/figs-synecdoche]] and [[rc://en/ta/man/translate/figs-you]])